pub struct TpeResponse<'a>(/* private fields */);Available on crate feature
tpe only.Expand description
A partial version of crate::Response.
This feature is experimental. For more information see https://github.com/cedar-policy/rfcs/blob/main/README.md#experimental-features
Implementations§
Source§impl TpeResponse<'_>
impl TpeResponse<'_>
Perform reauthorization
Sourcepub fn residual_policies(&self) -> impl Iterator<Item = Policy> + '_
pub fn residual_policies(&self) -> impl Iterator<Item = Policy> + '_
Return residuals as Policys
A Policy returned inherits crate::PolicyId and annotations from
the corresponding input policy
Its scope is unconstrained and its condition is in the form of a
single when clause with the residual as the expression
Use TpeResponse::nontrivial_residual_policies to get non-trivial residual policies
Sourcepub fn nontrivial_residual_policies(&self) -> impl Iterator<Item = Policy> + '_
pub fn nontrivial_residual_policies(&self) -> impl Iterator<Item = Policy> + '_
Returns an iterator of non-trivial (meaning more than just true
or false) residuals as Policys
A Policy returned inherits crate::PolicyId and annotations from
the corresponding input policy
Its scope is unconstrained and its condition is in the form of a
single when clause with the residual as the expression
Trait Implementations§
Source§impl<'a> Clone for TpeResponse<'a>
impl<'a> Clone for TpeResponse<'a>
Source§fn clone(&self) -> TpeResponse<'a>
fn clone(&self) -> TpeResponse<'a>
Returns a duplicate 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<'a> Debug for TpeResponse<'a>
impl<'a> Debug for TpeResponse<'a>
Auto Trait Implementations§
impl<'a> Freeze for TpeResponse<'a>
impl<'a> RefUnwindSafe for TpeResponse<'a>
impl<'a> Send for TpeResponse<'a>
impl<'a> Sync for TpeResponse<'a>
impl<'a> Unpin for TpeResponse<'a>
impl<'a> UnwindSafe for TpeResponse<'a>
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§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