Type Alias BytesValue

Source
pub type BytesValue = ArcBytes;
Expand description

CEL bytes value type.

Aliased Type§

pub struct BytesValue { /* private fields */ }

Trait Implementations§

Source§

impl FromValue for &BytesValue

Source§

type Output<'a> = &'a ArcSlice<[u8]>

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 FromValue for BytesValue

Source§

type Output<'a> = ArcSlice<[u8]>

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 BytesValue

Source§

fn into_constant(self) -> Constant

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

impl IntoValue for BytesValue

Source§

fn into_value(self) -> Value

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

impl<'a> TryFrom<&'a Value> for &'a BytesValue

Source§

type Error = FromValueError

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

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for BytesValue

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 BytesValue

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 BytesValue

Source§

fn value_type() -> ValueType

Returns the CEL type for this value type. Read more