pub struct ResidualResponse { /* private fields */ }
Available on crate feature
partial-eval
only.Expand description
FFI version of a crate::PartialResponse
This feature is experimental. For more information see https://github.com/cedar-policy/rfcs/blob/main/README.md#experimental-features
Implementations§
Source§impl ResidualResponse
impl ResidualResponse
Sourcepub fn errored(&self) -> impl Iterator<Item = &PolicyId>
pub fn errored(&self) -> impl Iterator<Item = &PolicyId>
Set of all policy ids for policies that errored
Sourcepub fn may_be_determining(&self) -> impl Iterator<Item = &PolicyId>
pub fn may_be_determining(&self) -> impl Iterator<Item = &PolicyId>
Over approximation of policies that determine the auth decision
Sourcepub fn must_be_determining(&self) -> impl Iterator<Item = &PolicyId>
pub fn must_be_determining(&self) -> impl Iterator<Item = &PolicyId>
Under approximation of policies that determine the auth decision
Sourcepub fn residuals(&self) -> impl Iterator<Item = &JsonValueWithNoDuplicateKeys>
pub fn residuals(&self) -> impl Iterator<Item = &JsonValueWithNoDuplicateKeys>
(Borrowed) Iterator over the set of residual policies
Sourcepub fn into_residuals(
self,
) -> impl Iterator<Item = JsonValueWithNoDuplicateKeys>
pub fn into_residuals( self, ) -> impl Iterator<Item = JsonValueWithNoDuplicateKeys>
(Owned) Iterator over the set of residual policies
Sourcepub fn residual(&self, p: &PolicyId) -> Option<&JsonValueWithNoDuplicateKeys>
pub fn residual(&self, p: &PolicyId) -> Option<&JsonValueWithNoDuplicateKeys>
Get the residual policy for a specified id if it exists
Sourcepub fn nontrivial_residuals(
&self,
) -> impl Iterator<Item = &JsonValueWithNoDuplicateKeys>
pub fn nontrivial_residuals( &self, ) -> impl Iterator<Item = &JsonValueWithNoDuplicateKeys>
(Borrowed) Iterator over the set of non-trivial residual policies
Sourcepub fn nontrivial_residual_ids(&self) -> impl Iterator<Item = &PolicyId>
pub fn nontrivial_residual_ids(&self) -> impl Iterator<Item = &PolicyId>
Iterator over the set of non-trivial residual policy ids
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<'de> Deserialize<'de> for ResidualResponse
impl<'de> Deserialize<'de> for ResidualResponse
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 Serialize for ResidualResponse
impl Serialize for ResidualResponse
Source§impl TryFrom<PartialResponse> for ResidualResponse
impl TryFrom<PartialResponse> for ResidualResponse
Auto Trait Implementations§
impl Freeze for ResidualResponse
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
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