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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more