pub enum Formality {
Default,
More,
Less,
PreferMore,
PreferLess,
}Expand description
Variants for formality.
Variants§
Default
Default formality.
More
For a more formal language.
Less
For a more informal language.
PreferMore
For a more formal language if available, otherwise fallback to default formality.
PreferLess
For a more informal language if available, otherwise fallback to default formality.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Formality
impl<'de> Deserialize<'de> for Formality
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
Auto Trait Implementations§
impl Freeze for Formality
impl RefUnwindSafe for Formality
impl Send for Formality
impl Sync for Formality
impl Unpin for Formality
impl UnwindSafe for Formality
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