Skip to main content

ResultValue

Trait ResultValue 

Source
pub trait ResultValue {
    // Required method
    fn to_json_value(&self) -> Result<Value, Error>;
}
Expand description

Helper trait for converting task return values into JSON for storage.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ResultValue for T
where T: Serialize,