pub struct SetCartShipping {
pub shipping_address: CartAddress,
pub shipping_method: Option<String>,
pub shipping_carrier: Option<String>,
pub shipping_amount: Option<Decimal>,
}Expand description
Input for setting shipping on cart
Fields§
§shipping_address: CartAddress§shipping_method: Option<String>§shipping_carrier: Option<String>§shipping_amount: Option<Decimal>Trait Implementations§
Source§impl Clone for SetCartShipping
impl Clone for SetCartShipping
Source§fn clone(&self) -> SetCartShipping
fn clone(&self) -> SetCartShipping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetCartShipping
impl Debug for SetCartShipping
Source§impl<'de> Deserialize<'de> for SetCartShipping
impl<'de> Deserialize<'de> for SetCartShipping
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetCartShipping, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetCartShipping, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SetCartShipping
impl Serialize for SetCartShipping
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SetCartShipping
impl RefUnwindSafe for SetCartShipping
impl Send for SetCartShipping
impl Sync for SetCartShipping
impl Unpin for SetCartShipping
impl UnsafeUnpin for SetCartShipping
impl UnwindSafe for SetCartShipping
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