#[non_exhaustive]pub struct CustomLevel {
pub expr: Option<Expr>,
/* private fields */
}Expand description
CustomLevel is an AccessLevel using the Cloud Common Expression Language
to represent the necessary conditions for the level to apply to a request.
See CEL spec at: https://github.com/google/cel-spec
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expr: Option<Expr>Required. A Cloud CEL expression evaluating to a boolean.
Implementations§
Trait Implementations§
Source§impl Clone for CustomLevel
impl Clone for CustomLevel
Source§fn clone(&self) -> CustomLevel
fn clone(&self) -> CustomLevel
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 Debug for CustomLevel
impl Debug for CustomLevel
Source§impl Default for CustomLevel
impl Default for CustomLevel
Source§fn default() -> CustomLevel
fn default() -> CustomLevel
Returns the “default value” for a type. Read more
Source§impl Message for CustomLevel
impl Message for CustomLevel
Source§impl PartialEq for CustomLevel
impl PartialEq for CustomLevel
impl StructuralPartialEq for CustomLevel
Auto Trait Implementations§
impl Freeze for CustomLevel
impl RefUnwindSafe for CustomLevel
impl Send for CustomLevel
impl Sync for CustomLevel
impl Unpin for CustomLevel
impl UnwindSafe for CustomLevel
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