Skip to main content

Value

Trait Value 

Source
pub trait Value:
    DeserializeOwned
    + Send
    + Serialize
    + Sync
    + 'static { }
Expand description

Marks application values that Dex can serialize as JSON and move across handler boundaries.

The blanket implementation accepts owned, thread-safe Serde values. Keep serialized shapes backward compatible for running Flows, because persisted Attributes, Channel messages, Step inputs, and RPC payloads may outlive a deployment.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> Value for T
where T: DeserializeOwned + Send + Serialize + Sync + 'static,