pub struct Condition {
pub type: String,
pub description: String,
pub short_description: Option<Option<String>>,
}Expand description
Condition : Describes sales, usage and after sales conditions applicable to the product. See after sales conditions for individual after sales amounts. The language of the text is controlled by the accept-language header, i.e. supporting English is a must.
Fields§
§type: String§description: Stringhuman readable documentation of the text.
short_description: Option<Option<String>>short description of the condition no longer than 64 characters
Implementations§
Source§impl Condition
impl Condition
Sourcepub fn new(type: String, description: String) -> Condition
pub fn new(type: String, description: String) -> Condition
Describes sales, usage and after sales conditions applicable to the product. See after sales conditions for individual after sales amounts. The language of the text is controlled by the accept-language header, i.e. supporting English is a must.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
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
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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