pub struct CelExpression { /* private fields */ }
Implementations§
Source§impl CelExpression
impl CelExpression
pub fn try_evaluate<'a, T: TryFrom<CelResult<'a>, Error = ResultCoercionError>>( &'a self, ctx: &CelContext, ) -> Result<T, CelError>
pub fn evaluate(&self, ctx: &CelContext) -> Result<CelValue, CelError>
Trait Implementations§
Source§impl Clone for CelExpression
impl Clone for CelExpression
Source§fn clone(&self) -> CelExpression
fn clone(&self) -> CelExpression
Returns a duplicate of the value. Read more
1.0.0 · 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 CelExpression
impl Debug for CelExpression
Source§impl<'de> Deserialize<'de> for CelExpression
impl<'de> Deserialize<'de> for CelExpression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CelExpression
impl Display for CelExpression
Source§impl From<CelExpression> for String
impl From<CelExpression> for String
Source§fn from(expr: CelExpression) -> Self
fn from(expr: CelExpression) -> Self
Converts to this type from the input type.
Source§impl FromStr for CelExpression
impl FromStr for CelExpression
Source§impl Serialize for CelExpression
impl Serialize for CelExpression
Source§impl TryFrom<&str> for CelExpression
impl TryFrom<&str> for CelExpression
Auto Trait Implementations§
impl Freeze for CelExpression
impl RefUnwindSafe for CelExpression
impl Send for CelExpression
impl Sync for CelExpression
impl Unpin for CelExpression
impl UnwindSafe for CelExpression
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