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
sourceimpl 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
sourceimpl Clone for CodSettings
impl Clone for CodSettings
sourcefn clone(&self) -> CodSettings
fn clone(&self) -> CodSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CodSettings
impl Debug for CodSettings
sourceimpl Default for CodSettings
impl Default for CodSettings
sourcefn default() -> CodSettings
fn default() -> CodSettings
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CodSettings
impl<'de> Deserialize<'de> for CodSettings
sourcefn 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
sourceimpl PartialEq<CodSettings> for CodSettings
impl PartialEq<CodSettings> for CodSettings
sourcefn eq(&self, other: &CodSettings) -> bool
fn eq(&self, other: &CodSettings) -> bool
sourceimpl Serialize for CodSettings
impl Serialize for CodSettings
impl StructuralPartialEq for CodSettings
Auto Trait Implementations
impl RefUnwindSafe for CodSettings
impl Send for CodSettings
impl Sync for CodSettings
impl Unpin for CodSettings
impl UnwindSafe for CodSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more