pub struct InterfaceResidualResponse { /* private fields */ }
👎Deprecated since 3.2.0: Use the functions in the
ffi
module insteadAvailable on crate feature
partial-eval
only.Expand description
Integration version of a PartialResponse
that uses InterfaceDiagnistics
for simpler (de)serialization
This feature is experimental. For more information see https://github.com/cedar-policy/rfcs/blob/main/README.md#experimental-features
Implementations§
source§impl InterfaceResidualResponse
impl InterfaceResidualResponse
sourcepub fn decision(&self) -> Option<Decision>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn decision(&self) -> Option<Decision>
ffi
module insteadTri-state decision
sourcepub fn satisfied(&self) -> impl Iterator<Item = &PolicyId>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn satisfied(&self) -> impl Iterator<Item = &PolicyId>
ffi
module insteadSet of all satisfied policy Ids
sourcepub fn errored(&self) -> impl Iterator<Item = &PolicyId>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn errored(&self) -> impl Iterator<Item = &PolicyId>
ffi
module insteadSet of all policy ids for policies that errored
sourcepub fn may_be_determining(&self) -> impl Iterator<Item = &PolicyId>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn may_be_determining(&self) -> impl Iterator<Item = &PolicyId>
ffi
module insteadOver approximation of policies that determine the auth decision
sourcepub fn must_be_determining(&self) -> impl Iterator<Item = &PolicyId>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn must_be_determining(&self) -> impl Iterator<Item = &PolicyId>
ffi
module insteadUnder approximation of policies that determine the auth decision
sourcepub fn residuals(&self) -> impl Iterator<Item = &Value>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn residuals(&self) -> impl Iterator<Item = &Value>
ffi
module instead(Borrowed) Iterator over the set of residual policies
sourcepub fn into_residuals(self) -> impl Iterator<Item = Value>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn into_residuals(self) -> impl Iterator<Item = Value>
ffi
module instead(Owned) Iterator over the set of residual policies
sourcepub fn residual(&self, p: &PolicyId) -> Option<&Value>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn residual(&self, p: &PolicyId) -> Option<&Value>
ffi
module insteadGet the residual policy for a specified PolicyId
if it exists
sourcepub fn nontrivial_residuals(&self) -> impl Iterator<Item = &Value>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn nontrivial_residuals(&self) -> impl Iterator<Item = &Value>
ffi
module instead(Borrowed) Iterator over the set of non-trivial residual policies
sourcepub fn nontrivial_residual_ids(&self) -> impl Iterator<Item = &PolicyId>
👎Deprecated since 3.2.0: Use the functions in the ffi
module instead
pub fn nontrivial_residual_ids(&self) -> impl Iterator<Item = &PolicyId>
ffi
module insteadIterator over the set of non-trivial residual policy ids
Trait Implementations§
source§impl Clone for InterfaceResidualResponse
impl Clone for InterfaceResidualResponse
source§fn clone(&self) -> InterfaceResidualResponse
fn clone(&self) -> InterfaceResidualResponse
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 InterfaceResidualResponse
impl Debug for InterfaceResidualResponse
source§impl<'de> Deserialize<'de> for InterfaceResidualResponse
impl<'de> Deserialize<'de> for InterfaceResidualResponse
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 TryFrom<PartialResponse> for InterfaceResidualResponse
impl TryFrom<PartialResponse> for InterfaceResidualResponse
§type Error = Box<dyn Diagnostic>
type Error = Box<dyn Diagnostic>
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InterfaceResidualResponse
impl RefUnwindSafe for InterfaceResidualResponse
impl Send for InterfaceResidualResponse
impl Sync for InterfaceResidualResponse
impl Unpin for InterfaceResidualResponse
impl UnwindSafe for InterfaceResidualResponse
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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