Skip to main content

VldParse

Trait VldParse 

Source
pub trait VldParse: Sized {
    // Required method
    fn vld_parse_value(value: &Value) -> Result<Self, VldError>;
}
Expand description

Trait for types that can be parsed from a serde_json::Value.

Auto-implemented by the schema! macro and #[derive(Validate)] derive macro.

Used by framework integration crates (e.g., vld-axum, vld-actix) to provide type-safe request body extraction.

Required Methods§

Source

fn vld_parse_value(value: &Value) -> Result<Self, VldError>

Parse and validate a serde_json::Value into this type.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§