pub struct UserItem {
pub description: String,
pub glass_catalogs: Vec<String>,
pub body: ItemBody,
pub kind: Option<ItemKind>,
pub url: String,
pub cad: CadLinks,
pub specs: BTreeMap<String, Value>,
pub tags: Vec<String>,
pub source: String,
pub checked: String,
pub title: String,
pub notes: Vec<String>,
}Expand description
Fields§
§description: String§glass_catalogs: Vec<String>項目の玉のガラスのカタログ(使うときに足す)
body: ItemBody中身
kind: Option<ItemKind>品の種類(一覧の分類。省略時はブロックから: 鏡・BS のブロック 1 つならそれ、ほかは玉)
url: String製品ページ
cad: CadLinksCAD データ(STEP・図面)の公式 URL
specs: BTreeMap<String, Value>仕様(名前 → 数・[下限, 上限]・文字列。名前の決まったものは catalog_spec::SPEC_NAMES)
source: String仕様の出典(資料・ページ)
checked: String仕様を確かめた日(YYYY-MM-DD)
title: String品の名前(一覧のページの見出しなど)
notes: Vec<String>データを作ったときのメモ(読めなかった欄など)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserItem
impl<'de> Deserialize<'de> for UserItem
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
Source§impl JsonSchema for UserItem
impl JsonSchema for UserItem
Source§fn json_schema(g: &mut SchemaGenerator) -> Schema
fn json_schema(g: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for UserItem
impl RefUnwindSafe for UserItem
impl Send for UserItem
impl Sync for UserItem
impl Unpin for UserItem
impl UnsafeUnpin for UserItem
impl UnwindSafe for UserItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more