pub struct StructValue { /* private fields */ }Expand description
CEL struct value representing a serialized message.
The message is stored as its fully-qualified type name plus serialized bytes.
Deserialization into C++ MessageValue happens at the FFI boundary when the
value is passed to cel-cpp for evaluation.
Implementations§
Trait Implementations§
Source§impl Clone for StructValue
impl Clone for StructValue
Source§fn clone(&self) -> StructValue
fn clone(&self) -> StructValue
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 StructValue
impl Debug for StructValue
Source§impl FromValue for StructValue
impl FromValue for StructValue
Source§type Output<'a> = StructValue
type Output<'a> = StructValue
The output type for the
from_value method. Read moreSource§fn from_value<'a>(value: &'a Value) -> Result<Self::Output<'a>, FromValueError>
fn from_value<'a>(value: &'a Value) -> Result<Self::Output<'a>, FromValueError>
Source§impl FromValue for &StructValue
impl FromValue for &StructValue
Source§type Output<'a> = &'a StructValue
type Output<'a> = &'a StructValue
The output type for the
from_value method. Read moreSource§fn from_value<'a>(value: &'a Value) -> Result<Self::Output<'a>, FromValueError>
fn from_value<'a>(value: &'a Value) -> Result<Self::Output<'a>, FromValueError>
Source§impl IntoValue for StructValue
impl IntoValue for StructValue
Source§impl PartialEq for StructValue
impl PartialEq for StructValue
Source§fn eq(&self, other: &StructValue) -> bool
fn eq(&self, other: &StructValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StructValue
Source§impl TypedValue for StructValue
impl TypedValue for StructValue
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
Returns Dyn because TypedValue is a static trait method with no access
to the instance’s type_name. The actual message type is resolved at the
FFI layer during evaluation via the DescriptorPool.
Auto Trait Implementations§
impl Freeze for StructValue
impl RefUnwindSafe for StructValue
impl Send for StructValue
impl Sync for StructValue
impl Unpin for StructValue
impl UnsafeUnpin for StructValue
impl UnwindSafe for StructValue
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,
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoResult for Twhere
T: IntoValue + TypedValue,
impl<T> IntoResult for Twhere
T: IntoValue + TypedValue,
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
Get the CEL type of the resulting value.