#[non_exhaustive]pub enum ScopeContext {
CrdValidation,
AdmissionPolicy,
}Available on crate feature
validation only.Expand description
The context in which a CEL rule is evaluated.
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.
CrdValidation
CRD x-kubernetes-validations — only self, oldSelf, and root vars.
AdmissionPolicy
ValidatingAdmissionPolicy — object, oldObject, request, params, etc.
Trait Implementations§
Source§impl Clone for ScopeContext
impl Clone for ScopeContext
Source§fn clone(&self) -> ScopeContext
fn clone(&self) -> ScopeContext
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 moreimpl Copy for ScopeContext
Source§impl Debug for ScopeContext
impl Debug for ScopeContext
impl Eq for ScopeContext
Source§impl PartialEq for ScopeContext
impl PartialEq for ScopeContext
Source§fn eq(&self, other: &ScopeContext) -> bool
fn eq(&self, other: &ScopeContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScopeContext
Auto Trait Implementations§
impl Freeze for ScopeContext
impl RefUnwindSafe for ScopeContext
impl Send for ScopeContext
impl Sync for ScopeContext
impl Unpin for ScopeContext
impl UnsafeUnpin for ScopeContext
impl UnwindSafe for ScopeContext
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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