Skip to main content

ConvexClientExt

Trait ConvexClientExt 

Source
pub trait ConvexClientExt {
    // Provided method
    fn prepare_args<T>(args: T) -> Result<BTreeMap<String, ConvexValue>, Error>
       where BTreeMap<String, JsonValue>: TryFrom<T, Error = Error> { ... }
}
Available on crate feature client only.
Expand description

Ergonomic helpers for the official Convex Rust client (see prelude). Blanket helpers on convex::ConvexClient for generated argument structs.

Provided Methods§

Source

fn prepare_args<T>(args: T) -> Result<BTreeMap<String, ConvexValue>, Error>
where BTreeMap<String, JsonValue>: TryFrom<T, Error = Error>,

Convert function arguments into Convex-compatible format.

Uses TryFrom on the generated args type; serialization errors (for example non-finite floats) are returned as serde_json::Error.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ConvexClientExt for ConvexClient

Implementors§