pub enum AuthorizationError {
MissingScope(&'static str),
PrincipalMismatch,
TenantMismatch,
}Expand description
Reason a ScopeAuthorizer rejected a ComputerUseAuthContext.
Variants§
MissingScope(&'static str)
The caller lacks the scope required for the requested mode.
PrincipalMismatch
The action’s principal does not match the verified ADK identity.
TenantMismatch
The action’s tenant does not match the verified ADK identity.
Trait Implementations§
Source§impl Debug for AuthorizationError
impl Debug for AuthorizationError
Source§impl Display for AuthorizationError
impl Display for AuthorizationError
impl Eq for AuthorizationError
Source§impl Error for AuthorizationError
impl Error for AuthorizationError
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 AuthorizationError
impl PartialEq for AuthorizationError
impl StructuralPartialEq for AuthorizationError
Auto Trait Implementations§
impl Forget for AuthorizationError
impl Freeze for AuthorizationError
impl Move for AuthorizationError
impl RefUnwindSafe for AuthorizationError
impl Send for AuthorizationError
impl Sync for AuthorizationError
impl Unpin for AuthorizationError
impl UnsafeUnpin for AuthorizationErrorwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for AuthorizationErrorwhere
&'static str: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.