pub struct AuthResult {
pub allowed: Option<Allowed>,
pub auth_decision: Option<String>,
pub auth_info: Option<AuthInfo>,
pub denied: Option<Denied>,
pub missing_context_values: Option<Vec<String>>,
}Expand description
The authorizer result.
Fields§
§allowed: Option<Allowed>The policies and statements that allowed the specified action.
auth_decision: Option<String>The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
auth_info: Option<AuthInfo>Authorization information.
denied: Option<Denied>The policies and statements that denied the specified action.
missing_context_values: Option<Vec<String>>Contains any missing context values found while evaluating policy.
Trait Implementations§
Source§impl Clone for AuthResult
impl Clone for AuthResult
Source§fn clone(&self) -> AuthResult
fn clone(&self) -> AuthResult
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 AuthResult
impl Debug for AuthResult
Source§impl Default for AuthResult
impl Default for AuthResult
Source§fn default() -> AuthResult
fn default() -> AuthResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthResult
impl<'de> Deserialize<'de> for AuthResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuthResult
impl PartialEq for AuthResult
impl StructuralPartialEq for AuthResult
Auto Trait Implementations§
impl Freeze for AuthResult
impl RefUnwindSafe for AuthResult
impl Send for AuthResult
impl Sync for AuthResult
impl Unpin for AuthResult
impl UnwindSafe for AuthResult
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