Struct google_api_proto::google::cloud::commerce::consumer::procurement::v1alpha1::LineItemChange
source · pub struct LineItemChange {
pub change_id: String,
pub change_type: i32,
pub old_line_item_info: Option<LineItemInfo>,
pub new_line_item_info: Option<LineItemInfo>,
pub change_state: i32,
pub state_reason: String,
pub change_state_reason_type: i32,
pub change_effective_time: Option<Timestamp>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
}
Expand description
A change made on a line item.
Fields§
§change_id: String
Output only. Change ID. All changes made within one order update operation have the same change_id.
change_type: i32
Required. Type of the change to make.
old_line_item_info: Option<LineItemInfo>
Output only. Line item info before the change.
new_line_item_info: Option<LineItemInfo>
Line item info after the change.
change_state: i32
Output only. State of the change.
state_reason: String
Output only. Provider-supplied message explaining the LineItemChange’s
state. Mainly used to communicate progress and ETA for provisioning in the
case of PENDING_APPROVAL
, and to explain why the change request was
denied or canceled in the case of REJECTED
and CANCELED
states.
change_state_reason_type: i32
Output only. Predefined enum types for why this line item change is in
current state. For example, a line item change’s state could be
LINE_ITEM_CHANGE_STATE_COMPLETED
because of end-of-term expiration,
immediate cancellation initiated by the user, or system-initiated
cancellation.
change_effective_time: Option<Timestamp>
Output only. A time at which the change became or will become (in case of pending change) effective.
create_time: Option<Timestamp>
Output only. The time when change was initiated.
update_time: Option<Timestamp>
Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.
Implementations§
source§impl LineItemChange
impl LineItemChange
sourcepub fn change_type(&self) -> LineItemChangeType
pub fn change_type(&self) -> LineItemChangeType
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: LineItemChangeType)
pub fn set_change_type(&mut self, value: LineItemChangeType)
Sets change_type
to the provided enum value.
sourcepub fn change_state(&self) -> LineItemChangeState
pub fn change_state(&self) -> LineItemChangeState
Returns the enum value of change_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_change_state(&mut self, value: LineItemChangeState)
pub fn set_change_state(&mut self, value: LineItemChangeState)
Sets change_state
to the provided enum value.
sourcepub fn change_state_reason_type(&self) -> LineItemChangeStateReasonType
pub fn change_state_reason_type(&self) -> LineItemChangeStateReasonType
Returns the enum value of change_state_reason_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_change_state_reason_type(
&mut self,
value: LineItemChangeStateReasonType,
)
pub fn set_change_state_reason_type( &mut self, value: LineItemChangeStateReasonType, )
Sets change_state_reason_type
to the provided enum value.
Trait Implementations§
source§impl Clone for LineItemChange
impl Clone for LineItemChange
source§fn clone(&self) -> LineItemChange
fn clone(&self) -> LineItemChange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LineItemChange
impl Debug for LineItemChange
source§impl Default for LineItemChange
impl Default for LineItemChange
source§impl Message for LineItemChange
impl Message for LineItemChange
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 LineItemChange
impl PartialEq for LineItemChange
source§fn eq(&self, other: &LineItemChange) -> bool
fn eq(&self, other: &LineItemChange) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LineItemChange
Auto Trait Implementations§
impl Freeze for LineItemChange
impl RefUnwindSafe for LineItemChange
impl Send for LineItemChange
impl Sync for LineItemChange
impl Unpin for LineItemChange
impl UnwindSafe for LineItemChange
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