pub enum ExceptionalContext {
None,
ValueMissingFromResource,
ValueMissingFromAllResources,
OptionalResourceMissingFromLocale,
OptionalResourceMissingFromAllLocales,
RequiredResourceMissingFromLocale,
RequiredResourceMissingFromAllLocales,
}
Variants§
None
There is no exceptional context for this query (happy path).
ValueMissingFromResource
A value is missing from a resource and should cause a fallback.
ValueMissingFromAllResources
A value is missing from all resources in all locales.
OptionalResourceMissingFromLocale
An optional resource is missing from the top locale.
OptionalResourceMissingFromAllLocales
An optional resource is missing from all locales.
RequiredResourceMissingFromLocale
A required resource is missing from the top locale.
RequiredResourceMissingFromAllLocales
A required resource is missing from all locales.
Implementations§
Source§impl ExceptionalContext
impl ExceptionalContext
Sourcepub fn missing_required_resource(self) -> bool
pub fn missing_required_resource(self) -> bool
This is a query for a value in a missing required resource.
Sourcepub fn causes_reported_format_error(self) -> bool
pub fn causes_reported_format_error(self) -> bool
This query should cause a format error to be appended to the errors Vec.
Sourcepub fn causes_failed_value_lookup(self) -> bool
pub fn causes_failed_value_lookup(self) -> bool
This query should cause a failed value lookup.
Sourcepub fn blocks_bundle_generation(self) -> bool
pub fn blocks_bundle_generation(self) -> bool
This query should result in no bundles being generated.
Trait Implementations§
Source§impl Clone for ExceptionalContext
impl Clone for ExceptionalContext
Source§fn clone(&self) -> ExceptionalContext
fn clone(&self) -> ExceptionalContext
Returns a copy 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 ExceptionalContext
impl Debug for ExceptionalContext
impl Copy for ExceptionalContext
Auto Trait Implementations§
impl Freeze for ExceptionalContext
impl RefUnwindSafe for ExceptionalContext
impl Send for ExceptionalContext
impl Sync for ExceptionalContext
impl Unpin for ExceptionalContext
impl UnwindSafe for ExceptionalContext
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