pub struct GoogleType__Expr {
pub description: Option<String>,
pub expression: Option<String>,
pub location: Option<String>,
pub title: Option<String>,
}Expand description
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: “Summary size limit” description: “Determines if a summary is less than 100 chars” expression: “document.summary.size() < 100” Example (Equality): title: “Requestor is owner” description: “Determines if requestor is the document owner” expression: “document.owner == request.auth.claims.email” Example (Logic): title: “Public documents” description: “Determine whether the document should be publicly visible” expression: “document.type != ‘private’ && document.type != ‘internal’” Example (Data Manipulation): title: “Notification string” description: “Create a notification string with a timestamp.” expression: “’New message received at ’ + string(document.create_time)” The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<String>Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
expression: Option<String>Textual representation of an expression in Common Expression Language syntax.
location: Option<String>Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
title: Option<String>Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Trait Implementations§
Source§impl Clone for GoogleType__Expr
impl Clone for GoogleType__Expr
Source§fn clone(&self) -> GoogleType__Expr
fn clone(&self) -> GoogleType__Expr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoogleType__Expr
impl Debug for GoogleType__Expr
Source§impl Default for GoogleType__Expr
impl Default for GoogleType__Expr
Source§fn default() -> GoogleType__Expr
fn default() -> GoogleType__Expr
Source§impl<'de> Deserialize<'de> for GoogleType__Expr
impl<'de> Deserialize<'de> for GoogleType__Expr
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>,
Source§impl Serialize for GoogleType__Expr
impl Serialize for GoogleType__Expr
impl Part for GoogleType__Expr
Auto Trait Implementations§
impl Freeze for GoogleType__Expr
impl RefUnwindSafe for GoogleType__Expr
impl Send for GoogleType__Expr
impl Sync for GoogleType__Expr
impl Unpin for GoogleType__Expr
impl UnwindSafe for GoogleType__Expr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more