[][src]Struct rustpostal::expand::NormalizeOptions

pub struct NormalizeOptions<'a> {
    pub languages: Option<Vec<&'a str>>,
    pub address_components: AddressComponents,
    pub latin_ascii: bool,
    pub transliterate: bool,
    pub strip_accents: bool,
    pub decompose: bool,
    pub lowercase: bool,
    pub trim_string: bool,
    pub drop_parentheticals: bool,
    pub replace_numeric_hyphens: bool,
    pub delete_numeric_hyphens: bool,
    pub split_alpha_from_numeric: bool,
    pub replace_word_hyphens: bool,
    pub delete_word_hyphens: bool,
    pub delete_final_periods: bool,
    pub delete_acronym_periods: bool,
    pub drop_english_possessives: bool,
    pub delete_apostrophes: bool,
    pub expand_numex: bool,
    pub roman_numerals: bool,
    // some fields omitted
}

Normalization options.

Fields

languages: Option<Vec<&'a str>>address_components: AddressComponentslatin_ascii: booltransliterate: boolstrip_accents: booldecompose: boollowercase: booltrim_string: booldrop_parentheticals: boolreplace_numeric_hyphens: booldelete_numeric_hyphens: boolsplit_alpha_from_numeric: boolreplace_word_hyphens: booldelete_word_hyphens: booldelete_final_periods: booldelete_acronym_periods: booldrop_english_possessives: booldelete_apostrophes: boolexpand_numex: boolroman_numerals: bool

Implementations

impl<'a> NormalizeOptions<'a>[src]

pub fn new(languages: Option<Vec<&'a str>>) -> NormalizeOptions<'a>[src]

Create new instance with default options.

languages override the respective option field, if given.

Trait Implementations

impl<'a> Debug for NormalizeOptions<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for NormalizeOptions<'a>

impl<'a> !Send for NormalizeOptions<'a>

impl<'a> !Sync for NormalizeOptions<'a>

impl<'a> Unpin for NormalizeOptions<'a>

impl<'a> UnwindSafe for NormalizeOptions<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.