pub enum ItemKind {
Physical,
Virtual,
}Expand description
What kind of thing is being sold.
iyzico refuses a basket line without it, and it is what decides whether a shipping address means anything.
Deliberately exhaustive, for the reason
Currency is: it goes out to a provider, so a third
variant would be one every adapter has to say what it sends for. A
wildcard arm would let it go out as whatever the last variant mapped to.
Variants§
Physical
Something that ships. The default, because most baskets ship.
Virtual
Something that does not.
Trait Implementations§
impl Copy for ItemKind
impl Eq for ItemKind
impl StructuralPartialEq for ItemKind
Auto Trait Implementations§
impl Freeze for ItemKind
impl RefUnwindSafe for ItemKind
impl Send for ItemKind
impl Sync for ItemKind
impl Unpin for ItemKind
impl UnsafeUnpin for ItemKind
impl UnwindSafe for ItemKind
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
Mutably borrows from an owned value. Read more