#[non_exhaustive]pub struct Class {
pub code: String,
pub name: String,
pub level: String,
pub unit: Option<String>,
pub parent_code: Option<String>,
pub add_inf: Option<String>,
pub extra: Map<String, Value>,
}Expand description
CLASS element: one item of a dimension, such as an area or a year.
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.code: StringItem code (@code), such as 13000.
name: StringName (@name), such as 東京都.
level: StringHierarchy level (@level), from 1. Often empty for tab.
unit: Option<String>Unit (@unit), such as 人.
parent_code: Option<String>Code of the parent item (@parentCode).
add_inf: Option<String>Additional information (@addInf).
extra: Map<String, Value>Fields this crate does not know yet, kept as received.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Class
impl<'de> Deserialize<'de> for Class
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 Class
Auto Trait Implementations§
impl Forget for Class
impl Freeze for Class
impl Move for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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