pub struct TextProcessingOptions {
pub language: Option<String>,
pub lowercase: bool,
pub normalize_unicode: bool,
pub keep_apostrophes: bool,
pub include_punctuation: bool,
}Expand description
Data type for text processing options.
Fields§
§language: Option<String>Language tag for this value.
lowercase: boolThe lowercase value.
normalize_unicode: boolThe normalize unicode value.
keep_apostrophes: boolThe keep apostrophes value.
include_punctuation: boolThe include punctuation value.
Trait Implementations§
Source§impl Clone for TextProcessingOptions
impl Clone for TextProcessingOptions
Source§fn clone(&self) -> TextProcessingOptions
fn clone(&self) -> TextProcessingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextProcessingOptions
impl Debug for TextProcessingOptions
Source§impl Default for TextProcessingOptions
impl Default for TextProcessingOptions
Source§impl<'de> Deserialize<'de> for TextProcessingOptions
impl<'de> Deserialize<'de> for TextProcessingOptions
Source§fn 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 Eq for TextProcessingOptions
Source§impl PartialEq for TextProcessingOptions
impl PartialEq for TextProcessingOptions
Source§fn eq(&self, other: &TextProcessingOptions) -> bool
fn eq(&self, other: &TextProcessingOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextProcessingOptions
impl Serialize for TextProcessingOptions
impl StructuralPartialEq for TextProcessingOptions
Auto Trait Implementations§
impl Freeze for TextProcessingOptions
impl RefUnwindSafe for TextProcessingOptions
impl Send for TextProcessingOptions
impl Sync for TextProcessingOptions
impl Unpin for TextProcessingOptions
impl UnsafeUnpin for TextProcessingOptions
impl UnwindSafe for TextProcessingOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more