pub enum Translation {
Singular(String),
Plural(Plural),
}Variants§
Singular(String)
A single translation without plural forms.
Plural(Plural)
A translation with plural forms.
Implementations§
Source§impl Translation
impl Translation
pub fn plain_translation(translation: Translation) -> Translation
pub fn plain_translation_string(&self) -> String
Trait Implementations§
Source§impl Clone for Translation
impl Clone for Translation
Source§fn clone(&self) -> Translation
fn clone(&self) -> Translation
Returns a duplicate 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 Translation
impl Debug for Translation
Source§impl<'de> Deserialize<'de> for Translation
impl<'de> Deserialize<'de> for Translation
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 Display for Translation
impl Display for Translation
Source§impl PartialEq for Translation
impl PartialEq for Translation
Source§impl Serialize for Translation
impl Serialize for Translation
impl Eq for Translation
impl StructuralPartialEq for Translation
Auto Trait Implementations§
impl Freeze for Translation
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnwindSafe for Translation
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