pub enum ScopeValueError {
Empty,
TooLong,
InvalidByte,
}Expand description
Authentication-scope value validation error.
Variants§
Empty
Scope values must not be empty.
TooLong
Scope values exceed MAX_SCOPE_VALUE_BYTES.
InvalidByte
Scope values must contain visible ASCII without whitespace or controls.
Trait Implementations§
Source§impl Clone for ScopeValueError
impl Clone for ScopeValueError
Source§fn clone(&self) -> ScopeValueError
fn clone(&self) -> ScopeValueError
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 moreimpl Copy for ScopeValueError
Source§impl Debug for ScopeValueError
impl Debug for ScopeValueError
Source§impl Display for ScopeValueError
impl Display for ScopeValueError
impl Eq for ScopeValueError
Source§impl Error for ScopeValueError
impl Error for ScopeValueError
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 ScopeValueError
impl PartialEq for ScopeValueError
impl StructuralPartialEq for ScopeValueError
Auto Trait Implementations§
impl Freeze for ScopeValueError
impl RefUnwindSafe for ScopeValueError
impl Send for ScopeValueError
impl Sync for ScopeValueError
impl Unpin for ScopeValueError
impl UnsafeUnpin for ScopeValueError
impl UnwindSafe for ScopeValueError
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