Struct google_api_proto::google::cloud::channel::v1::EntitlementChange
source · pub struct EntitlementChange {
pub entitlement: String,
pub offer: String,
pub provisioned_service: Option<ProvisionedService>,
pub change_type: i32,
pub create_time: Option<Timestamp>,
pub operator_type: i32,
pub parameters: Vec<Parameter>,
pub operator: String,
pub change_reason: Option<ChangeReason>,
}
Expand description
Change event entry for Entitlement order history
Fields§
§entitlement: String
Required. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
offer: String
Required. Resource name of the Offer at the time of change. Takes the form: accounts/{account_id}/offers/{offer_id}.
provisioned_service: Option<ProvisionedService>
Service provisioned for an Entitlement.
change_type: i32
The change action type.
create_time: Option<Timestamp>
The submitted time of the change.
operator_type: i32
Operator type responsible for the change.
parameters: Vec<Parameter>
Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id, long_running_operation_id, order_id; etc.
operator: String
Human-readable identifier that shows what operator made a change. When the operator_type is RESELLER, this is the user’s email address. For all other operator types, this is empty.
change_reason: Option<ChangeReason>
The reason the change was made
Implementations§
source§impl EntitlementChange
impl EntitlementChange
sourcepub fn change_type(&self) -> ChangeType
pub fn change_type(&self) -> ChangeType
Returns the enum value of change_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_change_type(&mut self, value: ChangeType)
pub fn set_change_type(&mut self, value: ChangeType)
Sets change_type
to the provided enum value.
sourcepub fn operator_type(&self) -> OperatorType
pub fn operator_type(&self) -> OperatorType
Returns the enum value of operator_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operator_type(&mut self, value: OperatorType)
pub fn set_operator_type(&mut self, value: OperatorType)
Sets operator_type
to the provided enum value.
Trait Implementations§
source§impl Clone for EntitlementChange
impl Clone for EntitlementChange
source§fn clone(&self) -> EntitlementChange
fn clone(&self) -> EntitlementChange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntitlementChange
impl Debug for EntitlementChange
source§impl Default for EntitlementChange
impl Default for EntitlementChange
source§impl Message for EntitlementChange
impl Message for EntitlementChange
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for EntitlementChange
impl PartialEq for EntitlementChange
source§fn eq(&self, other: &EntitlementChange) -> bool
fn eq(&self, other: &EntitlementChange) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntitlementChange
Auto Trait Implementations§
impl Freeze for EntitlementChange
impl RefUnwindSafe for EntitlementChange
impl Send for EntitlementChange
impl Sync for EntitlementChange
impl Unpin for EntitlementChange
impl UnwindSafe for EntitlementChange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request