pub struct FuzzySearchResponse {
pub matches: HashMap<String, Vec<FuzzyMatch>>,
pub truncations: HashMap<String, bool>,
}
Expand description
FuzzySearchResponse is used to return fuzzy matches and information about whether the match list is truncated specific to each type of searchable Context.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§matches: HashMap<String, Vec<FuzzyMatch>>
Matches is a map of Context types to IDs which fuzzy match a specified query.
truncations: HashMap<String, bool>
Truncations indicates whether the matches for a particular Context have been truncated.
Trait Implementations§
Source§impl Clone for FuzzySearchResponse
impl Clone for FuzzySearchResponse
Source§fn clone(&self) -> FuzzySearchResponse
fn clone(&self) -> FuzzySearchResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FuzzySearchResponse
impl Debug for FuzzySearchResponse
Source§impl Default for FuzzySearchResponse
impl Default for FuzzySearchResponse
Source§fn default() -> FuzzySearchResponse
fn default() -> FuzzySearchResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FuzzySearchResponse
impl<'de> Deserialize<'de> for FuzzySearchResponse
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 PartialEq for FuzzySearchResponse
impl PartialEq for FuzzySearchResponse
Source§impl Serialize for FuzzySearchResponse
impl Serialize for FuzzySearchResponse
impl StructuralPartialEq for FuzzySearchResponse
Auto Trait Implementations§
impl Freeze for FuzzySearchResponse
impl RefUnwindSafe for FuzzySearchResponse
impl Send for FuzzySearchResponse
impl Sync for FuzzySearchResponse
impl Unpin for FuzzySearchResponse
impl UnwindSafe for FuzzySearchResponse
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