pub struct CodSettings {
pub is_cod_required: bool,
pub cod_charge: Option<Box<Money>>,
pub cod_charge_tax: Option<Box<Money>>,
pub shipping_charge: Option<Box<Money>>,
pub shipping_charge_tax: Option<Box<Money>>,
}Expand description
CodSettings : The COD (Cash On Delivery) charges that you associate with a COD fulfillment order.
Fields§
§is_cod_required: boolWhen true, this fulfillment order requires a COD (Cash On Delivery) payment.
cod_charge: Option<Box<Money>>§cod_charge_tax: Option<Box<Money>>§shipping_charge: Option<Box<Money>>§shipping_charge_tax: Option<Box<Money>>Implementations§
Source§impl CodSettings
impl CodSettings
Sourcepub fn new(is_cod_required: bool) -> CodSettings
pub fn new(is_cod_required: bool) -> CodSettings
The COD (Cash On Delivery) charges that you associate with a COD fulfillment order.
Trait Implementations§
Source§impl Clone for CodSettings
impl Clone for CodSettings
Source§fn clone(&self) -> CodSettings
fn clone(&self) -> CodSettings
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 CodSettings
impl Debug for CodSettings
Source§impl Default for CodSettings
impl Default for CodSettings
Source§fn default() -> CodSettings
fn default() -> CodSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodSettings
impl<'de> Deserialize<'de> for CodSettings
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 CodSettings
impl PartialEq for CodSettings
Source§impl Serialize for CodSettings
impl Serialize for CodSettings
impl StructuralPartialEq for CodSettings
Auto Trait Implementations§
impl Freeze for CodSettings
impl RefUnwindSafe for CodSettings
impl Send for CodSettings
impl Sync for CodSettings
impl Unpin for CodSettings
impl UnwindSafe for CodSettings
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