Type Alias Timestamp

Source
pub type Timestamp = DateTime<Utc>;
Expand description

CEL timestamp type.

Aliased Type§

pub struct Timestamp { /* private fields */ }

Trait Implementations§

Source§

impl FromValue for Timestamp

Source§

type Output<'a> = DateTime<Utc>

The output type for the from_value method. Read more
Source§

fn from_value<'a>(value: &'a Value) -> Result<Self::Output<'a>, FromValueError>

Attempts to convert a CEL Value into this type. Read more
Source§

impl IntoConstant for Timestamp

Source§

fn into_constant(self) -> Constant

Convert this value into a compile-time CEL constant. Read more
Source§

impl IntoValue for Timestamp

Source§

fn into_value(self) -> Value

Converts this value into a CEL Value. Read more
Source§

impl TryFrom<&Value> for Timestamp

Source§

type Error = FromValueError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, <Self as TryFrom<&Value>>::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Timestamp

Source§

type Error = FromValueError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, <Self as TryFrom<Value>>::Error>

Performs the conversion.
Source§

impl TypedValue for Timestamp

Source§

fn value_type() -> ValueType

Returns the CEL type for this value type. Read more