pub struct Cart {
pub user_id: String,
pub firstname: Option<String>,
pub lastname: Option<String>,
pub date: String,
pub ip_address: String,
pub cart_products: String,
pub total: String,
pub order_id: Option<String>,
pub products: Option<Vec<CartProduct>>,
}Fields§
§user_id: String§firstname: Option<String>§lastname: Option<String>§date: String§ip_address: String§cart_products: String§total: String§order_id: Option<String>§products: Option<Vec<CartProduct>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cart
impl<'de> Deserialize<'de> for Cart
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 Cart
impl RefUnwindSafe for Cart
impl Send for Cart
impl Sync for Cart
impl Unpin for Cart
impl UnwindSafe for Cart
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