Enum google_api_proto::google::cloud::commerce::consumer::procurement::v1alpha1::LineItemChangeState
source · #[repr(i32)]pub enum LineItemChangeState {
Unspecified = 0,
PendingApproval = 1,
Approved = 2,
Completed = 3,
Rejected = 4,
Abandoned = 5,
Activating = 6,
}
Expand description
State of a change.
Variants§
Unspecified = 0
Sentinel value. Do not use.
PendingApproval = 1
Change is in this state when a change is initiated and waiting for partner approval.
Approved = 2
Change is in this state after it’s approved by the partner or auto-approved but before it takes effect. The change can be overwritten or cancelled depending on the new line item info property (pending Private Offer change cannot be cancelled and can only be overwritten by another Private Offer).
Completed = 3
Change is in this state after it’s been activated.
Rejected = 4
Change is in this state if it was rejected by the partner.
Abandoned = 5
Change is in this state if it was abandoned by the user.
Activating = 6
Change is in this state if it’s currently being provisioned downstream. The change can’t be overwritten or cancelled when it’s in this state.
Implementations§
source§impl LineItemChangeState
impl LineItemChangeState
sourcepub fn from_i32(value: i32) -> Option<LineItemChangeState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<LineItemChangeState>
Converts an i32
to a LineItemChangeState
, or None
if value
is not a valid variant.
source§impl LineItemChangeState
impl LineItemChangeState
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for LineItemChangeState
impl Clone for LineItemChangeState
source§fn clone(&self) -> LineItemChangeState
fn clone(&self) -> LineItemChangeState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LineItemChangeState
impl Debug for LineItemChangeState
source§impl Default for LineItemChangeState
impl Default for LineItemChangeState
source§fn default() -> LineItemChangeState
fn default() -> LineItemChangeState
source§impl From<LineItemChangeState> for i32
impl From<LineItemChangeState> for i32
source§fn from(value: LineItemChangeState) -> i32
fn from(value: LineItemChangeState) -> i32
source§impl Hash for LineItemChangeState
impl Hash for LineItemChangeState
source§impl Ord for LineItemChangeState
impl Ord for LineItemChangeState
source§fn cmp(&self, other: &LineItemChangeState) -> Ordering
fn cmp(&self, other: &LineItemChangeState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LineItemChangeState
impl PartialEq for LineItemChangeState
source§fn eq(&self, other: &LineItemChangeState) -> bool
fn eq(&self, other: &LineItemChangeState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LineItemChangeState
impl PartialOrd for LineItemChangeState
source§fn partial_cmp(&self, other: &LineItemChangeState) -> Option<Ordering>
fn partial_cmp(&self, other: &LineItemChangeState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for LineItemChangeState
impl TryFrom<i32> for LineItemChangeState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<LineItemChangeState, UnknownEnumValue>
fn try_from(value: i32) -> Result<LineItemChangeState, UnknownEnumValue>
impl Copy for LineItemChangeState
impl Eq for LineItemChangeState
impl StructuralPartialEq for LineItemChangeState
Auto Trait Implementations§
impl Freeze for LineItemChangeState
impl RefUnwindSafe for LineItemChangeState
impl Send for LineItemChangeState
impl Sync for LineItemChangeState
impl Unpin for LineItemChangeState
impl UnwindSafe for LineItemChangeState
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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