pub struct ScopeNotCovered {
pub requested: Vec<String>,
pub granted: Vec<String>,
pub missing: Vec<String>,
}Expand description
The server granted a scope that does not cover what was requested.
Terminal, never transient: retrying re-runs the same grant policy and gets the same answer. The consumer’s correct response is to treat the credential as unusable at this tier — surface a signed-out state and start a fresh authorization, or re-consent at a tier the user will grant.
Fields§
§requested: Vec<String>The atoms the marker type requested.
granted: Vec<String>The atoms the server actually granted, as echoed.
missing: Vec<String>Requested atoms absent from the grant — the reason this failed.
Trait Implementations§
Source§impl Clone for ScopeNotCovered
impl Clone for ScopeNotCovered
Source§fn clone(&self) -> ScopeNotCovered
fn clone(&self) -> ScopeNotCovered
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 moreSource§impl Debug for ScopeNotCovered
impl Debug for ScopeNotCovered
Source§impl Display for ScopeNotCovered
impl Display for ScopeNotCovered
Source§impl Error for ScopeNotCovered
impl Error for ScopeNotCovered
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 From<ScopeNotCovered> for CallbackError
impl From<ScopeNotCovered> for CallbackError
Source§fn from(source: ScopeNotCovered) -> Self
fn from(source: ScopeNotCovered) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScopeNotCovered
impl RefUnwindSafe for ScopeNotCovered
impl Send for ScopeNotCovered
impl Sync for ScopeNotCovered
impl Unpin for ScopeNotCovered
impl UnsafeUnpin for ScopeNotCovered
impl UnwindSafe for ScopeNotCovered
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