pub enum AppIdentityError {
MissingId,
MissingName,
MissingIcon,
EmptyId,
IdTooLong(usize),
InvalidId(String),
EmptyName,
}Expand description
Validation errors for AppIdentity and ApplicationId.
§Examples
use ailloli_ui_core::{AppIdentityError, ApplicationId};
assert_eq!(
ApplicationId::parse("").unwrap_err(),
AppIdentityError::EmptyId,
);Variants§
MissingId
No identifier was supplied with AppIdentity::id.
MissingName
No display name was supplied with AppIdentity::name.
MissingIcon
No icon was supplied with AppIdentity::icon.
EmptyId
The supplied identifier is an empty string.
IdTooLong(usize)
The identifier exceeds 255 bytes; the payload is its actual byte length.
InvalidId(String)
The payload does not satisfy the lowercase reverse-DNS grammar.
EmptyName
The supplied display name is empty after trimming whitespace.
Trait Implementations§
Source§impl Clone for AppIdentityError
impl Clone for AppIdentityError
Source§fn clone(&self) -> AppIdentityError
fn clone(&self) -> AppIdentityError
Returns a copy 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 AppIdentityError
impl Debug for AppIdentityError
Source§impl Display for AppIdentityError
impl Display for AppIdentityError
Source§impl Error for AppIdentityError
impl Error for AppIdentityError
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 AppIdentityError
impl PartialEq for AppIdentityError
impl Eq for AppIdentityError
impl StructuralPartialEq for AppIdentityError
Auto Trait Implementations§
impl Freeze for AppIdentityError
impl RefUnwindSafe for AppIdentityError
impl Send for AppIdentityError
impl Sync for AppIdentityError
impl Unpin for AppIdentityError
impl UnwindSafe for AppIdentityError
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