pub struct CatalogQuery {
pub kinds: Vec<ItemKind>,
pub vendor: String,
pub text: String,
pub specs: Vec<SpecFilter>,
pub fits: Option<f64>,
}Expand description
一覧の絞り込み(CLI catalog-search・serve の catalog_search)
Fields§
§kinds: Vec<ItemKind>品の種類(空なら全部)
vendor: Stringメーカー(含む、大文字小文字・記号を無視。空なら全部)
text: String型番・説明・タグ・仕様の文字列に含む語(空白で区切った語をすべて含む)
specs: Vec<SpecFilter>§fits: Option<f64>径 [mm] の素子が入る機構部品だけ(保持径が径以上で、FIT_TOL より太くない)
Implementations§
Source§impl CatalogQuery
impl CatalogQuery
pub fn matches(&self, row: &CatalogRow) -> bool
Trait Implementations§
Source§impl Clone for CatalogQuery
impl Clone for CatalogQuery
Source§impl Debug for CatalogQuery
impl Debug for CatalogQuery
Auto Trait Implementations§
impl Freeze for CatalogQuery
impl RefUnwindSafe for CatalogQuery
impl Send for CatalogQuery
impl Sync for CatalogQuery
impl Unpin for CatalogQuery
impl UnsafeUnpin for CatalogQuery
impl UnwindSafe for CatalogQuery
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