pub enum TranslateError {
ResourceNotExists(String),
LocaleNotSupported {
locale: LanguageIdentifier,
},
MessageIdNotExists {
id: String,
locale: LanguageIdentifier,
},
MessageAttributeNotExists {
attribute: String,
id: String,
locale: LanguageIdentifier,
},
MessageIdValueNotExists {
id: String,
locale: LanguageIdentifier,
},
FormatErrors(Vec<FluentError>),
}Variants§
ResourceNotExists(String)
LocaleNotSupported
Fields
§
locale: LanguageIdentifierMessageIdNotExists
MessageAttributeNotExists
MessageIdValueNotExists
FormatErrors(Vec<FluentError>)
Trait Implementations§
Source§impl Debug for TranslateError
impl Debug for TranslateError
Source§impl Display for TranslateError
impl Display for TranslateError
Source§impl Error for TranslateError
impl Error for TranslateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TranslateError
impl PartialEq for TranslateError
impl StructuralPartialEq for TranslateError
Auto Trait Implementations§
impl Freeze for TranslateError
impl RefUnwindSafe for TranslateError
impl Send for TranslateError
impl Sync for TranslateError
impl Unpin for TranslateError
impl UnwindSafe for TranslateError
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