pub enum DomainTypeError {
EmptyRepoPath,
AbsoluteRepoPath {
value: String,
},
TraversingRepoPath {
value: String,
},
EmptySlug {
kind: &'static str,
},
InvalidSlug {
kind: &'static str,
value: String,
},
}Expand description
Validation failures for domain value objects.
Variants§
EmptyRepoPath
The provided repository path was empty.
AbsoluteRepoPath
The provided repository path was absolute.
TraversingRepoPath
The provided repository path attempted to escape the workspace root.
EmptySlug
The provided slug was empty.
InvalidSlug
The provided slug contained unsupported characters.
Trait Implementations§
Source§impl Clone for DomainTypeError
impl Clone for DomainTypeError
Source§fn clone(&self) -> DomainTypeError
fn clone(&self) -> DomainTypeError
Returns a duplicate 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 DomainTypeError
impl Debug for DomainTypeError
Source§impl Display for DomainTypeError
impl Display for DomainTypeError
Source§impl Error for DomainTypeError
impl Error for DomainTypeError
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 DomainTypeError
impl PartialEq for DomainTypeError
impl Eq for DomainTypeError
impl StructuralPartialEq for DomainTypeError
Auto Trait Implementations§
impl Freeze for DomainTypeError
impl RefUnwindSafe for DomainTypeError
impl Send for DomainTypeError
impl Sync for DomainTypeError
impl Unpin for DomainTypeError
impl UnsafeUnpin for DomainTypeError
impl UnwindSafe for DomainTypeError
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