pub struct AuthorizationDecision {
pub allowed: bool,
pub limits: BTreeMap<String, Value>,
}Expand description
Authorization result and provider-defined limits for the granted action.
Fields§
§allowed: boolWhether policy permits the requested action.
limits: BTreeMap<String, Value>Limits such as lease duration or maximum concurrent sessions.
Trait Implementations§
Source§impl Clone for AuthorizationDecision
impl Clone for AuthorizationDecision
Source§impl Debug for AuthorizationDecision
impl Debug for AuthorizationDecision
Source§impl Default for AuthorizationDecision
impl Default for AuthorizationDecision
impl Eq for AuthorizationDecision
Source§impl FromValue for AuthorizationDecision
impl FromValue for AuthorizationDecision
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl FromWalk for AuthorizationDecision
impl FromWalk for AuthorizationDecision
Source§impl MapRead for AuthorizationDecision
impl MapRead for AuthorizationDecision
Source§impl PartialEq for AuthorizationDecision
impl PartialEq for AuthorizationDecision
Source§impl Schema for AuthorizationDecision
impl Schema for AuthorizationDecision
impl StructuralPartialEq for AuthorizationDecision
Source§impl ToValue for AuthorizationDecision
impl ToValue for AuthorizationDecision
Auto Trait Implementations§
impl Freeze for AuthorizationDecision
impl RefUnwindSafe for AuthorizationDecision
impl Send for AuthorizationDecision
impl Sync for AuthorizationDecision
impl Unpin for AuthorizationDecision
impl UnsafeUnpin for AuthorizationDecision
impl UnwindSafe for AuthorizationDecision
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