pub enum ProfileNameError {
Empty,
TooLong(usize),
InvalidCharacters(String),
HyphenBoundary(String),
Reserved(String),
}Expand description
Why a profile name was rejected.
Variants§
Trait Implementations§
Source§impl Clone for ProfileNameError
impl Clone for ProfileNameError
Source§fn clone(&self) -> ProfileNameError
fn clone(&self) -> ProfileNameError
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 ProfileNameError
impl Debug for ProfileNameError
Source§impl Display for ProfileNameError
impl Display for ProfileNameError
Source§impl Error for ProfileNameError
impl Error for ProfileNameError
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 ProfileNameError
impl PartialEq for ProfileNameError
Source§fn eq(&self, other: &ProfileNameError) -> bool
fn eq(&self, other: &ProfileNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProfileNameError
impl StructuralPartialEq for ProfileNameError
Auto Trait Implementations§
impl Freeze for ProfileNameError
impl RefUnwindSafe for ProfileNameError
impl Send for ProfileNameError
impl Sync for ProfileNameError
impl Unpin for ProfileNameError
impl UnsafeUnpin for ProfileNameError
impl UnwindSafe for ProfileNameError
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