pub enum ConvertToJsonError<'a> {
Value(&'a Value),
DurationOverflow(&'a Duration),
}Variants§
Value(&'a Value)
We cannot convert the CEL value to JSON. Some CEL types (like functions) are not representable in JSON.
DurationOverflow(&'a Duration)
The duration is too large to convert to nanoseconds. Any duration of 2^63 nanoseconds or more will overflow. We’ll return the duration type in the error message.
Trait Implementations§
Source§impl<'a> Clone for ConvertToJsonError<'a>
impl<'a> Clone for ConvertToJsonError<'a>
Source§fn clone(&self) -> ConvertToJsonError<'a>
fn clone(&self) -> ConvertToJsonError<'a>
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<'a> Debug for ConvertToJsonError<'a>
impl<'a> Debug for ConvertToJsonError<'a>
Source§impl<'a> Display for ConvertToJsonError<'a>
impl<'a> Display for ConvertToJsonError<'a>
Source§impl<'a> Error for ConvertToJsonError<'a>
impl<'a> Error for ConvertToJsonError<'a>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<'a> Freeze for ConvertToJsonError<'a>
impl<'a> RefUnwindSafe for ConvertToJsonError<'a>
impl<'a> Send for ConvertToJsonError<'a>
impl<'a> Sync for ConvertToJsonError<'a>
impl<'a> Unpin for ConvertToJsonError<'a>
impl<'a> UnsafeUnpin for ConvertToJsonError<'a>
impl<'a> UnwindSafe for ConvertToJsonError<'a>
Blanket Implementations§
§impl<T> AnyExt for T
impl<T> AnyExt for T
§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind reference§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable reference§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointer§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointer§fn downcast_box<T>(this: Box<Self>) -> Result<Box<T>, Box<Self>>where
T: Any,
fn downcast_box<T>(this: Box<Self>) -> Result<Box<T>, Box<Self>>where
T: Any,
Attempts to downcast this to
T behind Box pointer§fn downcast_move<T>(this: Self) -> Option<T>
fn downcast_move<T>(this: Self) -> Option<T>
Attempts to downcast owned
Self to T,
useful only in generic context as a workaround for specializationSource§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