#[non_exhaustive]pub struct ClassObj {
pub id: String,
pub name: String,
pub description: Option<String>,
pub explanation: Vec<Explanation>,
pub class: Vec<Class>,
pub extra: Map<String, Value>,
}Expand description
CLASS_OBJ element: one dimension and its items.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringDimension id (@id): tab, time, area or cat01 to cat15.
name: StringName (@name), such as 地域2012.
description: Option<String>Explanation (@description), when there is one.
explanation: Vec<Explanation>Explanations of items.
class: Vec<Class>Items.
extra: Map<String, Value>Fields this crate does not know yet, kept as received.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClassObj
impl<'de> Deserialize<'de> for ClassObj
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 ClassObj
Auto Trait Implementations§
impl Forget for ClassObj
impl Freeze for ClassObj
impl Move for ClassObj
impl RefUnwindSafe for ClassObj
impl Send for ClassObj
impl Sync for ClassObj
impl Unpin for ClassObj
impl UnsafeUnpin for ClassObj
impl UnwindSafe for ClassObj
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