Enum cedar_policy::PartialResponse
source · pub enum PartialResponse {
Concrete(Response),
Residual(ResidualResponse),
}
Available on crate feature
partial-eval
only.Expand description
Authorization response returned from is_authorized_partial
.
It can either be a full concrete response, or a residual response.
This feature is experimental. For more information see https://github.com/cedar-policy/rfcs/blob/main/README.md#experimental-features
Variants§
Concrete(Response)
A full, concrete response.
Residual(ResidualResponse)
A residual response. Determining the concrete response requires further processing.
Trait Implementations§
source§impl Clone for PartialResponse
impl Clone for PartialResponse
source§fn clone(&self) -> PartialResponse
fn clone(&self) -> PartialResponse
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 PartialResponse
impl Debug for PartialResponse
source§impl PartialEq for PartialResponse
impl PartialEq for PartialResponse
source§fn eq(&self, other: &PartialResponse) -> bool
fn eq(&self, other: &PartialResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<PartialResponse> for InterfaceResponse
impl TryFrom<PartialResponse> for InterfaceResponse
impl Eq for PartialResponse
impl StructuralPartialEq for PartialResponse
Auto Trait Implementations§
impl Freeze for PartialResponse
impl RefUnwindSafe for PartialResponse
impl Send for PartialResponse
impl Sync for PartialResponse
impl Unpin for PartialResponse
impl UnwindSafe for PartialResponse
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.