#[repr(i32)]pub enum Type {
Unspecified = 0,
WrapperRepeatedItem = 1,
WrapperMapKey = 2,
WrapperMapValue = 3,
CustomExpression = 4,
}
Expand description
The type of the target of the expression
Variants§
Unspecified = 0
WrapperRepeatedItem = 1
Only apply all sub items to repeated items
WrapperMapKey = 2
Only apply all sub items to map keys
WrapperMapValue = 3
Only apply all sub items to map values
CustomExpression = 4
Unlike the others, this can only be applied
to lists of CelExpression
Implementations§
Source§impl Type
impl Type
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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