pub struct ShippingCost {
pub id: String,
pub cost: f64,
}Expand description
Delivery cost for shipping method as defined by the merchant in the product
Fields§
§id: StringId of the shipping method
cost: f64Cost to use this shipping method
Trait Implementations§
Source§impl Clone for ShippingCost
impl Clone for ShippingCost
Source§fn clone(&self) -> ShippingCost
fn clone(&self) -> ShippingCost
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 ShippingCost
impl Debug for ShippingCost
Source§impl<'de> Deserialize<'de> for ShippingCost
impl<'de> Deserialize<'de> for ShippingCost
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
Source§impl JsonUtil for ShippingCost
impl JsonUtil for ShippingCost
Source§fn as_pretty_json(&self) -> String
fn as_pretty_json(&self) -> String
Serialize as pretty JSON string Read more
Auto Trait Implementations§
impl Freeze for ShippingCost
impl RefUnwindSafe for ShippingCost
impl Send for ShippingCost
impl Sync for ShippingCost
impl Unpin for ShippingCost
impl UnwindSafe for ShippingCost
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