pub struct Variety {
pub code: String,
pub name: String,
pub english_name: String,
pub pic: String,
pub variety_type: String,
}Expand description
Variety (commodity) information.
Fields§
§code: StringVariety code/ID.
name: StringVariety name in Chinese.
english_name: StringVariety name in English.
pic: StringPicture URL.
variety_type: StringVariety type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variety
impl<'de> Deserialize<'de> for Variety
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
Auto Trait Implementations§
impl Freeze for Variety
impl RefUnwindSafe for Variety
impl Send for Variety
impl Sync for Variety
impl Unpin for Variety
impl UnwindSafe for Variety
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