pub enum ResourcePlanError {
InvalidDomain {
domain: String,
details: FluentIdentifierError,
},
InvalidResourceKey {
key: String,
details: ResourceKeyError,
},
InvalidResourcePath {
path: String,
details: LocaleRelativeFtlPathError,
},
InvalidNamespace {
namespace: String,
details: NamespacePathError,
},
}Expand description
Errors produced while building a module resource plan.
Variants§
InvalidDomain
The module domain is not a valid Fluent domain.
InvalidResourceKey
The module domain is not a valid resource key segment.
InvalidResourcePath
A generated locale-relative resource path is invalid.
Fields
§
details: LocaleRelativeFtlPathErrorValidation details.
InvalidNamespace
A namespace entry is not a valid locale-relative namespace path.
Trait Implementations§
Source§impl Clone for ResourcePlanError
impl Clone for ResourcePlanError
Source§fn clone(&self) -> ResourcePlanError
fn clone(&self) -> ResourcePlanError
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 ResourcePlanError
impl Debug for ResourcePlanError
Source§impl Display for ResourcePlanError
impl Display for ResourcePlanError
impl Eq for ResourcePlanError
Source§impl Error for ResourcePlanError
impl Error for ResourcePlanError
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 ResourcePlanError
impl PartialEq for ResourcePlanError
impl StructuralPartialEq for ResourcePlanError
Auto Trait Implementations§
impl Freeze for ResourcePlanError
impl RefUnwindSafe for ResourcePlanError
impl Send for ResourcePlanError
impl Sync for ResourcePlanError
impl Unpin for ResourcePlanError
impl UnsafeUnpin for ResourcePlanError
impl UnwindSafe for ResourcePlanError
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