pub struct InvalidItemReason {
pub invalid_item_reason_code: InvalidItemReasonCode,
pub description: String,
}Expand description
InvalidItemReason : The reason that the item is invalid for return.
Fields
invalid_item_reason_code: InvalidItemReasonCodedescription: StringA human readable description of the invalid item reason code.
Implementations
sourceimpl InvalidItemReason
impl InvalidItemReason
sourcepub fn new(
invalid_item_reason_code: InvalidItemReasonCode,
description: String
) -> InvalidItemReason
pub fn new(
invalid_item_reason_code: InvalidItemReasonCode,
description: String
) -> InvalidItemReason
The reason that the item is invalid for return.
Trait Implementations
sourceimpl Clone for InvalidItemReason
impl Clone for InvalidItemReason
sourcefn clone(&self) -> InvalidItemReason
fn clone(&self) -> InvalidItemReason
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 InvalidItemReason
impl Debug for InvalidItemReason
sourceimpl Default for InvalidItemReason
impl Default for InvalidItemReason
sourcefn default() -> InvalidItemReason
fn default() -> InvalidItemReason
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InvalidItemReason
impl<'de> Deserialize<'de> for InvalidItemReason
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<InvalidItemReason> for InvalidItemReason
impl PartialEq<InvalidItemReason> for InvalidItemReason
sourcefn eq(&self, other: &InvalidItemReason) -> bool
fn eq(&self, other: &InvalidItemReason) -> bool
sourceimpl Serialize for InvalidItemReason
impl Serialize for InvalidItemReason
impl StructuralPartialEq for InvalidItemReason
Auto Trait Implementations
impl RefUnwindSafe for InvalidItemReason
impl Send for InvalidItemReason
impl Sync for InvalidItemReason
impl Unpin for InvalidItemReason
impl UnwindSafe for InvalidItemReason
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