pub struct ScopeDenied {
pub required: Vec<String>,
pub missing: Vec<String>,
}Expand description
Error returned when a user lacks required scopes.
Fields§
§required: Vec<String>All scopes the tool requires.
missing: Vec<String>Scopes the user is missing.
Trait Implementations§
Source§impl Clone for ScopeDenied
impl Clone for ScopeDenied
Source§fn clone(&self) -> ScopeDenied
fn clone(&self) -> ScopeDenied
Returns a duplicate 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 ScopeDenied
impl Debug for ScopeDenied
Source§impl Display for ScopeDenied
impl Display for ScopeDenied
Source§impl Error for ScopeDenied
impl Error for ScopeDenied
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 ScopeDenied
impl RefUnwindSafe for ScopeDenied
impl Send for ScopeDenied
impl Sync for ScopeDenied
impl Unpin for ScopeDenied
impl UnsafeUnpin for ScopeDenied
impl UnwindSafe for ScopeDenied
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