Struct cedar_policy::ResidualResponse
source · pub struct ResidualResponse { /* private fields */ }
Expand description
A residual response obtained from is_authorized_partial
.
Implementations§
source§impl ResidualResponse
impl ResidualResponse
sourcepub fn new(
residuals: PolicySet,
reason: HashSet<PolicyId>,
errors: HashSet<String>
) -> Self
pub fn new( residuals: PolicySet, reason: HashSet<PolicyId>, errors: HashSet<String> ) -> Self
Create a new ResidualResponse
sourcepub fn residuals(&self) -> &PolicySet
pub fn residuals(&self) -> &PolicySet
Get the residual policies needed to reach an authorization decision.
sourcepub fn diagnostics(&self) -> &Diagnostics
pub fn diagnostics(&self) -> &Diagnostics
Get the authorization diagnostics
Trait Implementations§
source§impl Clone for ResidualResponse
impl Clone for ResidualResponse
source§fn clone(&self) -> ResidualResponse
fn clone(&self) -> ResidualResponse
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 ResidualResponse
impl Debug for ResidualResponse
source§impl PartialEq<ResidualResponse> for ResidualResponse
impl PartialEq<ResidualResponse> for ResidualResponse
source§fn eq(&self, other: &ResidualResponse) -> bool
fn eq(&self, other: &ResidualResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResidualResponse
impl StructuralEq for ResidualResponse
impl StructuralPartialEq for ResidualResponse
Auto Trait Implementations§
impl RefUnwindSafe for ResidualResponse
impl Send for ResidualResponse
impl Sync for ResidualResponse
impl Unpin for ResidualResponse
impl UnwindSafe for ResidualResponse
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.