pub enum NamespacePathError {
Empty,
OuterWhitespace,
BackslashSeparator,
EmptySegment,
CurrentOrParentSegment,
AbsolutePath,
FileExtension,
}Expand description
Validation failures for resolved namespace paths.
Variants§
Empty
The namespace is empty after trimming.
OuterWhitespace
The namespace has leading or trailing whitespace.
BackslashSeparator
The namespace uses a Windows-style separator.
EmptySegment
The namespace contains an empty path segment.
CurrentOrParentSegment
The namespace contains . or ...
AbsolutePath
The namespace resolves as an absolute path.
FileExtension
The namespace includes the .ftl suffix.
Implementations§
Trait Implementations§
Source§impl Clone for NamespacePathError
impl Clone for NamespacePathError
impl Copy for NamespacePathError
Source§impl Debug for NamespacePathError
impl Debug for NamespacePathError
Source§impl Display for NamespacePathError
impl Display for NamespacePathError
impl Eq for NamespacePathError
Source§impl Error for NamespacePathError
impl Error for NamespacePathError
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 From<NamespacePathError> for ResourceKeyError
impl From<NamespacePathError> for ResourceKeyError
Source§fn from(source: NamespacePathError) -> Self
fn from(source: NamespacePathError) -> Self
Converts to this type from the input type.
Source§impl From<NamespacePathError> for LocaleRelativeFtlPathError
impl From<NamespacePathError> for LocaleRelativeFtlPathError
Source§fn from(source: NamespacePathError) -> Self
fn from(source: NamespacePathError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NamespacePathError
impl PartialEq for NamespacePathError
impl StructuralPartialEq for NamespacePathError
Auto Trait Implementations§
impl Freeze for NamespacePathError
impl RefUnwindSafe for NamespacePathError
impl Send for NamespacePathError
impl Sync for NamespacePathError
impl Unpin for NamespacePathError
impl UnsafeUnpin for NamespacePathError
impl UnwindSafe for NamespacePathError
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