/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// 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.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct FuzzySearchResponse {
    /// Matches is a map of Context types to IDs which fuzzy match a specified query.
    #[serde(rename = "Matches")]
    pub matches: std::collections::HashMap<String, Vec<super::FuzzyMatch>>,

    /// Truncations indicates whether the matches for a particular Context have
    /// been truncated.
    #[serde(rename = "Truncations")]
    pub truncations: std::collections::HashMap<String, bool>,
}
