pub enum KnownLanguage {
Regex,
Cedar,
}Expand description
The evaluator languages this workspace names. Naming a member here is
naming a sibling crate that implements
Evaluator for it — a decision for whoever
maintains this workspace, not something a policy record can request into
existence — but naming one ahead of the crate that implements it is
exactly what an open union is for: it makes that crate’s later arrival an
addition to this list, not a change to its shape.
Variants§
Regex
didbot-policy-regex: a deterministic in-process regular-expression
evaluator, linear-time and safe to run with no deadline.
Cedar
didbot-policy-cedar: an authorization-specific, schema-validated
and analysable language, deny (forbid)-only in this system since
policies here never permit.
Trait Implementations§
Source§impl Clone for KnownLanguage
impl Clone for KnownLanguage
Source§fn clone(&self) -> KnownLanguage
fn clone(&self) -> KnownLanguage
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 KnownLanguage
impl Debug for KnownLanguage
Source§impl Hash for KnownLanguage
impl Hash for KnownLanguage
Source§impl PartialEq for KnownLanguage
impl PartialEq for KnownLanguage
Source§fn eq(&self, other: &KnownLanguage) -> bool
fn eq(&self, other: &KnownLanguage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for KnownLanguage
impl Eq for KnownLanguage
impl StructuralPartialEq for KnownLanguage
Auto Trait Implementations§
impl Freeze for KnownLanguage
impl RefUnwindSafe for KnownLanguage
impl Send for KnownLanguage
impl Sync for KnownLanguage
impl Unpin for KnownLanguage
impl UnsafeUnpin for KnownLanguage
impl UnwindSafe for KnownLanguage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.