pub struct CheckoutSession {
pub id: String,
pub status: CheckoutStatus,
pub amount: i64,
pub currency: String,
pub merchant_id: String,
pub items: Vec<CheckoutItem>,
pub created_at: i64,
pub expires_at: Option<i64>,
}Expand description
Checkout Session - represents an active shopping session
Fields§
§id: String§status: CheckoutStatus§amount: i64§currency: String§merchant_id: String§items: Vec<CheckoutItem>§created_at: i64§expires_at: Option<i64>Implementations§
Trait Implementations§
Source§impl Clone for CheckoutSession
impl Clone for CheckoutSession
Source§fn clone(&self) -> CheckoutSession
fn clone(&self) -> CheckoutSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckoutSession
impl Debug for CheckoutSession
Source§impl<'de> Deserialize<'de> for CheckoutSession
impl<'de> Deserialize<'de> for CheckoutSession
Source§fn 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
Auto Trait Implementations§
impl Freeze for CheckoutSession
impl RefUnwindSafe for CheckoutSession
impl Send for CheckoutSession
impl Sync for CheckoutSession
impl Unpin for CheckoutSession
impl UnwindSafe for CheckoutSession
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