pub struct QueryV1 {
pub fastsim_version: Option<u32>,
pub powertrain: Option<String>,
pub make: Option<String>,
pub model: Option<String>,
pub year: Option<String>,
pub variant: Option<String>,
}Expand description
Structured search constraints over an IndexEntryV1 slice.
Every field is an exact-match constraint against the corresponding
IndexEntryV1 field; None means “no constraint on this field.” model
additionally supports substring matching (case-insensitive) since model
names are the field users are most likely to search partially
(e.g. “f-150” should match “f-150-raptor”).
All fields left as None (the Default) matches every entry.
Fields§
§fastsim_version: Option<u32>§powertrain: Option<String>§make: Option<String>§model: Option<String>§year: Option<String>§variant: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryV1
impl<'de> Deserialize<'de> for QueryV1
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 QueryV1
Auto Trait Implementations§
impl Freeze for QueryV1
impl RefUnwindSafe for QueryV1
impl Send for QueryV1
impl Sync for QueryV1
impl Unpin for QueryV1
impl UnsafeUnpin for QueryV1
impl UnwindSafe for QueryV1
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