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§
Sourcefn prepare_args<T>(args: T) -> Result<BTreeMap<String, ConvexValue>, Error>
fn prepare_args<T>(args: T) -> Result<BTreeMap<String, ConvexValue>, 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.