pub struct ExcludedBenefit {
pub benefit: String,
pub reason_codes: Option<Vec<String>>,
}Expand description
ExcludedBenefit : Object representing a benefit that is excluded for a shipping offer or rate.
Fields§
§benefit: Stringbenefit
reason_codes: Option<Vec<String>>List of reasons (eg. LATE_DELIVERY_RISK, etc.) indicating why a benefit is excluded for a shipping offer.
Implementations§
Source§impl ExcludedBenefit
impl ExcludedBenefit
Sourcepub fn new(benefit: String) -> ExcludedBenefit
pub fn new(benefit: String) -> ExcludedBenefit
Object representing a benefit that is excluded for a shipping offer or rate.
Trait Implementations§
Source§impl Clone for ExcludedBenefit
impl Clone for ExcludedBenefit
Source§fn clone(&self) -> ExcludedBenefit
fn clone(&self) -> ExcludedBenefit
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 ExcludedBenefit
impl Debug for ExcludedBenefit
Source§impl Default for ExcludedBenefit
impl Default for ExcludedBenefit
Source§fn default() -> ExcludedBenefit
fn default() -> ExcludedBenefit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExcludedBenefit
impl<'de> Deserialize<'de> for ExcludedBenefit
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 ExcludedBenefit
impl PartialEq for ExcludedBenefit
Source§impl Serialize for ExcludedBenefit
impl Serialize for ExcludedBenefit
impl StructuralPartialEq for ExcludedBenefit
Auto Trait Implementations§
impl Freeze for ExcludedBenefit
impl RefUnwindSafe for ExcludedBenefit
impl Send for ExcludedBenefit
impl Sync for ExcludedBenefit
impl Unpin for ExcludedBenefit
impl UnsafeUnpin for ExcludedBenefit
impl UnwindSafe for ExcludedBenefit
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