Enum oxide_auth::primitives::scope::ParseScopeErr
source · pub enum ParseScopeErr {
InvalidCharacter(char),
}
Expand description
Error returned from parsing a scope as encoded in an authorization token request.
Variants§
InvalidCharacter(char)
A character was encountered which is not allowed to appear in scope strings.
Scope-tokens are restricted to the following subset of ascii:
- The character ‘!’
- The character range ‘\x32’ to ‘\x5b’ which includes numbers and upper case letters
- The character range ‘\x5d’ to ‘\x7e’ which includes lower case letters Individual scope-tokens are separated by spaces.
In particular, the characters ‘\x22’ ("
) and ‘\x5c’ (\
) are not allowed.
Trait Implementations§
source§impl Debug for ParseScopeErr
impl Debug for ParseScopeErr
source§impl Display for ParseScopeErr
impl Display for ParseScopeErr
source§impl Error for ParseScopeErr
impl Error for ParseScopeErr
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for ParseScopeErr
impl Send for ParseScopeErr
impl Sync for ParseScopeErr
impl Unpin for ParseScopeErr
impl UnwindSafe for ParseScopeErr
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