Struct cedar_policy_core::authorizer::EvaluationResponse
source · pub struct EvaluationResponse {
pub satisfied_permits: HashSet<PolicyID>,
pub satisfied_forbids: HashSet<PolicyID>,
pub errors: Vec<AuthorizationError>,
pub permit_residuals: PolicySet,
pub forbid_residuals: PolicySet,
}
Expand description
Policy evaluation response returned from the Authorizer
.
Fields§
§satisfied_permits: HashSet<PolicyID>
PolicyID
s of the fully evaluated policies with a permit Effect
.
satisfied_forbids: HashSet<PolicyID>
PolicyID
s of the fully evaluated policies with a forbid Effect
.
errors: Vec<AuthorizationError>
List of errors that occurred
permit_residuals: PolicySet
Residual policies with a permit Effect
.
forbid_residuals: PolicySet
Residual policies with a forbid Effect
.
Trait Implementations§
source§impl Clone for EvaluationResponse
impl Clone for EvaluationResponse
source§fn clone(&self) -> EvaluationResponse
fn clone(&self) -> EvaluationResponse
Returns a copy 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 EvaluationResponse
impl Debug for EvaluationResponse
source§impl PartialEq for EvaluationResponse
impl PartialEq for EvaluationResponse
source§fn eq(&self, other: &EvaluationResponse) -> bool
fn eq(&self, other: &EvaluationResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluationResponse
Auto Trait Implementations§
impl Freeze for EvaluationResponse
impl RefUnwindSafe for EvaluationResponse
impl Send for EvaluationResponse
impl Sync for EvaluationResponse
impl Unpin for EvaluationResponse
impl UnwindSafe for EvaluationResponse
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