Struct elasticsearch_dsl::analyze::Token
source · [−]pub struct Token {
pub token: String,
pub start_offset: u32,
pub end_offset: u32,
pub ty: TokenType,
pub position: u32,
pub bytes: Option<String>,
pub keyword: Option<bool>,
pub position_length: Option<u32>,
pub term_frequency: Option<u32>,
}
Expand description
Extracted token from text using tokenizer
Fields
token: String
The characters of the current token
start_offset: u32
The start offset of the current token
end_offset: u32
The end offset of the current token
ty: TokenType
The type of the current token
position: u32
The position of the current token
bytes: Option<String>
Token in bytes
keyword: Option<bool>
Whether or not the current token is marked as a keyword
position_length: Option<u32>
The position length of the current token
term_frequency: Option<u32>
Term frequency in given text analysis
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
sourcefn 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
impl StructuralPartialEq for Token
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more