pub enum FormattersEnabled {
Show 16 variants
Markdown,
Asterisk,
Quote,
Dash,
Newline,
Colon,
Acronym,
DollarAmount,
Email,
Date,
Time,
Distance,
Unit,
Percentage,
PhoneNumber,
Number,
}Expand description
List of formatters to apply. If not provided, all default formatters will be applied. If provided, only the specified formatters will be applied. Note: Some essential formatters like angle bracket removal will always be applied. @default undefined
Variants§
Markdown
Asterisk
Quote
Dash
Newline
Colon
Acronym
DollarAmount
Date
Time
Distance
Unit
Percentage
PhoneNumber
Number
Trait Implementations§
Source§impl Clone for FormattersEnabled
impl Clone for FormattersEnabled
Source§fn clone(&self) -> FormattersEnabled
fn clone(&self) -> FormattersEnabled
Returns a copy of the value. Read more
1.0.0 · 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 FormattersEnabled
impl Debug for FormattersEnabled
Source§impl Default for FormattersEnabled
impl Default for FormattersEnabled
Source§fn default() -> FormattersEnabled
fn default() -> FormattersEnabled
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FormattersEnabled
impl<'de> Deserialize<'de> for FormattersEnabled
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
Source§impl Hash for FormattersEnabled
impl Hash for FormattersEnabled
Source§impl Ord for FormattersEnabled
impl Ord for FormattersEnabled
Source§fn cmp(&self, other: &FormattersEnabled) -> Ordering
fn cmp(&self, other: &FormattersEnabled) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FormattersEnabled
impl PartialEq for FormattersEnabled
Source§impl PartialOrd for FormattersEnabled
impl PartialOrd for FormattersEnabled
Source§impl Serialize for FormattersEnabled
impl Serialize for FormattersEnabled
impl Copy for FormattersEnabled
impl Eq for FormattersEnabled
impl StructuralPartialEq for FormattersEnabled
Auto Trait Implementations§
impl Freeze for FormattersEnabled
impl RefUnwindSafe for FormattersEnabled
impl Send for FormattersEnabled
impl Sync for FormattersEnabled
impl Unpin for FormattersEnabled
impl UnwindSafe for FormattersEnabled
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.