pub enum TranslationShape {
Singular {
value: String,
},
Plural {
source: PluralSource,
translation: BTreeMap<String, String>,
variable: String,
},
}Available on crate feature
catalog only.Expand description
Public translation shape returned from parsed catalogs.
Variants§
Singular
Message represented by a single string value.
Plural
Message represented by structured plural categories.
Trait Implementations§
Source§impl Clone for TranslationShape
impl Clone for TranslationShape
Source§fn clone(&self) -> TranslationShape
fn clone(&self) -> TranslationShape
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 TranslationShape
impl Debug for TranslationShape
Source§impl<'de> Deserialize<'de> for TranslationShape
impl<'de> Deserialize<'de> for TranslationShape
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TranslationShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TranslationShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TranslationShape
Source§impl PartialEq for TranslationShape
impl PartialEq for TranslationShape
Source§impl Serialize for TranslationShape
impl Serialize for TranslationShape
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TranslationShape
Auto Trait Implementations§
impl Freeze for TranslationShape
impl RefUnwindSafe for TranslationShape
impl Send for TranslationShape
impl Sync for TranslationShape
impl Unpin for TranslationShape
impl UnsafeUnpin for TranslationShape
impl UnwindSafe for TranslationShape
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