pub enum DepartmentIdError {
Empty,
TooLong {
length: usize,
},
}Expand description
Error returned when a DepartmentId cannot be constructed.
Variants§
Empty
The identifier string was empty.
TooLong
The identifier string exceeded the maximum allowed length.
Trait Implementations§
Source§impl Clone for DepartmentIdError
impl Clone for DepartmentIdError
Source§fn clone(&self) -> DepartmentIdError
fn clone(&self) -> DepartmentIdError
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 DepartmentIdError
impl Debug for DepartmentIdError
Source§impl Display for DepartmentIdError
impl Display for DepartmentIdError
Source§impl Error for DepartmentIdError
impl Error for DepartmentIdError
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 DepartmentIdError
impl PartialEq for DepartmentIdError
impl Eq for DepartmentIdError
impl StructuralPartialEq for DepartmentIdError
Auto Trait Implementations§
impl Freeze for DepartmentIdError
impl RefUnwindSafe for DepartmentIdError
impl Send for DepartmentIdError
impl Sync for DepartmentIdError
impl Unpin for DepartmentIdError
impl UnsafeUnpin for DepartmentIdError
impl UnwindSafe for DepartmentIdError
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