#[non_exhaustive]pub enum PdpDialect {
Cedar,
Opa,
AuthZen,
NeMo,
Cel,
Custom(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cedar
Bare Cedar policy evaluation (cpex-pdp-cedar-direct).
Opa
AuthZen
NeMo
Cel
CEL (Common Expression Language) evaluation — cpex-pdp-cel.
The cel: step carries an expr: string that must evaluate to a
boolean against the policy AttributeBag (exposed to CEL as nested
namespaces: subject.id, delegation.depth, session.labels, …).
A small, safe, non-Turing-complete predicate language — distinct
from the full PDPs (Cedar/OPA) so all can coexist on one
PdpRouter. The canonical route-YAML form is the block map
cel: { expr: "..." }; the cel:(...) call form is also accepted.
Custom(String)
Implementations§
Trait Implementations§
Source§impl Clone for PdpDialect
impl Clone for PdpDialect
Source§fn clone(&self) -> PdpDialect
fn clone(&self) -> PdpDialect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PdpDialect
impl Debug for PdpDialect
Source§impl<'de> Deserialize<'de> for PdpDialect
impl<'de> Deserialize<'de> for PdpDialect
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
impl Eq for PdpDialect
Source§impl Hash for PdpDialect
impl Hash for PdpDialect
Source§impl PartialEq for PdpDialect
impl PartialEq for PdpDialect
Source§impl Serialize for PdpDialect
impl Serialize for PdpDialect
impl StructuralPartialEq for PdpDialect
Auto Trait Implementations§
impl Freeze for PdpDialect
impl RefUnwindSafe for PdpDialect
impl Send for PdpDialect
impl Sync for PdpDialect
impl Unpin for PdpDialect
impl UnsafeUnpin for PdpDialect
impl UnwindSafe for PdpDialect
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.