1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::SuggestOption;

/// Suggester response item
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Suggest {
    /// Suggestion text
    pub text: String,

    /// Suggestion length
    pub length: u64,

    /// Suggestion offset
    pub offset: u64,

    /// Suggestion options
    pub options: Vec<SuggestOption>,
}