pub struct CatalogRow {
pub vendor: VendorKey,
pub category: String,
pub hold: Option<f64>,
pub hold_max: f64,
pub specs: BTreeMap<String, SpecValue>,
pub text: String,
}Expand description
一覧の 1 行の、絞り込みに使う値(行を読んだときに 1 回だけ作る)
Fields§
§vendor: VendorKeyメーカーの鍵
category: String品の種類(row_category)
hold: Option<f64>機構部品の保持径 [mm]
hold_max: f64挟むホルダーの入る径の上限 [mm](holds.max_diameter。0 は径の決まった部品)
specs: BTreeMap<String, SpecValue>仕様: specs の中と、行の同じ名前の欄(efl・diameter・thickness など一覧の値。specs が先)
text: String検索の文字列(メーカー・型番・説明・タグ・ガラス・仕様の文字列を改行でつないで小文字に)
Implementations§
Source§impl CatalogRow
impl CatalogRow
pub fn new(row: &Value) -> CatalogRow
Trait Implementations§
Source§impl Clone for CatalogRow
impl Clone for CatalogRow
Source§impl Debug for CatalogRow
impl Debug for CatalogRow
Source§impl Default for CatalogRow
impl Default for CatalogRow
Source§impl PartialEq for CatalogRow
impl PartialEq for CatalogRow
impl StructuralPartialEq for CatalogRow
Auto Trait Implementations§
impl Freeze for CatalogRow
impl RefUnwindSafe for CatalogRow
impl Send for CatalogRow
impl Sync for CatalogRow
impl Unpin for CatalogRow
impl UnsafeUnpin for CatalogRow
impl UnwindSafe for CatalogRow
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,
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