elasticsearch_dsl/search/highlight/encoder.rs
1/// Indicates if the snippet should be HTML encoded.
2#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize)]
3#[serde(rename_all = "snake_case")]
4pub enum Encoder {
5 /// No encoding
6 Default,
7
8 /// HTML-escape the snippet text and then insert the highlighting tags
9 Html,
10}