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)>
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()
Auto Trait Implementations§
impl Freeze for ParseScopeErr
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