pub struct AuthorizationContext {
pub subject: String,
pub resource: String,
pub action: String,
pub attributes: HashMap<String, String>,
}Available on crate feature
enterprise only.Expand description
Fields§
§subject: StringAuthenticated subject identifier.
resource: StringTarget resource identifier.
action: StringRequested action.
attributes: HashMap<String, String>Arbitrary subject/environment attributes.
Trait Implementations§
Source§impl Clone for AuthorizationContext
impl Clone for AuthorizationContext
Source§fn clone(&self) -> AuthorizationContext
fn clone(&self) -> AuthorizationContext
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 AuthorizationContext
impl Debug for AuthorizationContext
Source§impl Default for AuthorizationContext
impl Default for AuthorizationContext
Source§fn default() -> AuthorizationContext
fn default() -> AuthorizationContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for AuthorizationContext
impl PartialEq for AuthorizationContext
impl Eq for AuthorizationContext
impl StructuralPartialEq for AuthorizationContext
Auto Trait Implementations§
impl Freeze for AuthorizationContext
impl RefUnwindSafe for AuthorizationContext
impl Send for AuthorizationContext
impl Sync for AuthorizationContext
impl Unpin for AuthorizationContext
impl UnsafeUnpin for AuthorizationContext
impl UnwindSafe for AuthorizationContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.