pub enum OrderLineItemItemType {
Item,
CustomAmount,
GiftCard,
}
Expand description
Represents the line item type.
Variants
Item
Indicates that the line item is an itemized sale.
CustomAmount
Indicates that the line item is a non-itemized sale.
GiftCard
Indicates that the line item is a gift card sale. Gift cards sold through the Orders API are
sold in an unactivated state and can be activated through the Gift Cards API using the line
item uid
.
Trait Implementations
sourceimpl Clone for OrderLineItemItemType
impl Clone for OrderLineItemItemType
sourcefn clone(&self) -> OrderLineItemItemType
fn clone(&self) -> OrderLineItemItemType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OrderLineItemItemType
impl Debug for OrderLineItemItemType
sourceimpl<'de> Deserialize<'de> for OrderLineItemItemType
impl<'de> Deserialize<'de> for OrderLineItemItemType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<OrderLineItemItemType> for OrderLineItemItemType
impl PartialEq<OrderLineItemItemType> for OrderLineItemItemType
sourcefn eq(&self, other: &OrderLineItemItemType) -> bool
fn eq(&self, other: &OrderLineItemItemType) -> bool
sourceimpl Serialize for OrderLineItemItemType
impl Serialize for OrderLineItemItemType
impl Eq for OrderLineItemItemType
impl StructuralEq for OrderLineItemItemType
impl StructuralPartialEq for OrderLineItemItemType
Auto Trait Implementations
impl RefUnwindSafe for OrderLineItemItemType
impl Send for OrderLineItemItemType
impl Sync for OrderLineItemItemType
impl Unpin for OrderLineItemItemType
impl UnwindSafe for OrderLineItemItemType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.