Enum elastic::types::string::mapping::StringField
[−]
[src]
pub enum StringField { TokenCount(ElasticTokenCountFieldMapping), Completion(ElasticCompletionFieldMapping), Keyword(KeywordFieldMapping), Text(TextFieldMapping), }
A string sub-field type.
String types can have a number of alternative field representations for different purposes.
Variants
TokenCount(ElasticTokenCountFieldMapping)
A token_count
sub field.
Completion(ElasticCompletionFieldMapping)
A completion
suggester sub field.
Keyword(KeywordFieldMapping)
A keyword
sub field.
Text(TextFieldMapping)
A text
sub field.
Trait Implementations
impl Copy for StringField
[src]
impl Clone for StringField
[src]
fn clone(&self) -> StringField
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Serialize for StringField
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more