Type Alias StringValue

Source
pub type StringValue = ArcStr;
Expand description

CEL string value type.

Aliased Type§

pub struct StringValue { /* private fields */ }

Trait Implementations§

Source§

impl FromMapKey for &StringValue

Source§

fn from_mapkey<'a>( mapkey: &'a MapKey, ) -> Result<<Self as FromValue>::Output<'a>, FromMapKeyError>

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

impl FromMapKey for StringValue

Source§

fn from_mapkey<'a>( mapkey: &'a MapKey, ) -> Result<<Self as FromValue>::Output<'a>, FromMapKeyError>

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

impl FromValue for &StringValue

Source§

type Output<'a> = &'a ArcSlice<str>

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 StringValue

Source§

type Output<'a> = ArcSlice<str>

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 StringValue

Source§

fn into_constant(self) -> Constant

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

impl IntoMapKey for StringValue

Source§

fn into_mapkey(self) -> MapKey

Converts this value into a CEL MapKey.
Source§

impl IntoValue for StringValue

Source§

fn into_value(self) -> Value

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

impl<'a> TryFrom<&'a MapKey> for &'a StringValue

Source§

type Error = FromMapKeyError

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

fn try_from(mapkey: &'a MapKey) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&MapKey> for StringValue

Source§

type Error = FromMapKeyError

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

fn try_from(mapkey: &MapKey) -> Result<Self, <Self as TryFrom<&MapKey>>::Error>

Performs the conversion.
Source§

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

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 StringValue

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<MapKey> for StringValue

Source§

type Error = FromMapKeyError

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

fn try_from(mapkey: MapKey) -> Result<Self, <Self as TryFrom<MapKey>>::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for StringValue

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 TypedMapKey for StringValue

Source§

fn mapkey_type() -> MapKeyType

Returns the CEL map key type for this type.
Source§

impl TypedValue for StringValue

Source§

fn value_type() -> ValueType

Returns the CEL type for this value type. Read more