pub struct PaymentShippingOption {
pub id: String,
pub label: String,
pub amount: PaymentCurrencyAmount,
pub selected: Option<bool>,
}Expand description
A shipping option with its cost.
See: https://www.w3.org/TR/payment-request/#dom-paymentshippingoption
Fields§
§id: StringUnique identifier for the shipping option.
label: StringHuman-readable description.
amount: PaymentCurrencyAmountCost of this shipping option.
selected: Option<bool>Whether this is the default selection.
Trait Implementations§
Source§impl Clone for PaymentShippingOption
impl Clone for PaymentShippingOption
Source§fn clone(&self) -> PaymentShippingOption
fn clone(&self) -> PaymentShippingOption
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 PaymentShippingOption
impl Debug for PaymentShippingOption
Source§impl<'de> Deserialize<'de> for PaymentShippingOption
impl<'de> Deserialize<'de> for PaymentShippingOption
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 PartialEq for PaymentShippingOption
impl PartialEq for PaymentShippingOption
Source§fn eq(&self, other: &PaymentShippingOption) -> bool
fn eq(&self, other: &PaymentShippingOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentShippingOption
impl Serialize for PaymentShippingOption
impl StructuralPartialEq for PaymentShippingOption
Auto Trait Implementations§
impl Freeze for PaymentShippingOption
impl RefUnwindSafe for PaymentShippingOption
impl Send for PaymentShippingOption
impl Sync for PaymentShippingOption
impl Unpin for PaymentShippingOption
impl UnsafeUnpin for PaymentShippingOption
impl UnwindSafe for PaymentShippingOption
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