#[non_exhaustive]pub enum LocaleFault {
NoLocale,
Duplicate {
tag: String,
},
Untranslated {
locale: String,
},
Unoffered {
locale: String,
},
Syntax {
locale: String,
errors: Vec<String>,
},
}Expand description
Why a panel’s locales or
translations cannot be served.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoLocale
Panel::locales lists no locale.
List one at least: the first is the panel’s default.
Duplicate
Panel::locales lists a locale twice, or two names of one locale, as iw and he.
Untranslated
Panel::locales lists a locale neither Tablo nor the app translates, so the panel would
render it in English.
Add its catalog with Panel::translations, or drop it.
Unoffered
Panel::translations names a locale the panel does not offer, so no request reads it.
Add it to Panel::locales, or drop the translations.
Syntax
A catalog Panel::translations adds is not valid Fluent.
Trait Implementations§
Source§impl Clone for LocaleFault
impl Clone for LocaleFault
Source§impl Debug for LocaleFault
impl Debug for LocaleFault
Source§impl Display for LocaleFault
impl Display for LocaleFault
impl Eq for LocaleFault
Source§impl PartialEq for LocaleFault
impl PartialEq for LocaleFault
impl StructuralPartialEq for LocaleFault
Auto Trait Implementations§
impl Forget for LocaleFault
impl Freeze for LocaleFault
impl RefUnwindSafe for LocaleFault
impl Send for LocaleFault
impl Sync for LocaleFault
impl Unpin for LocaleFault
impl UnsafeUnpin for LocaleFault
impl UnwindSafe for LocaleFault
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.