pub trait MaxJsonLength: DeserializeOwned {
type Args;
// Required method
fn max_json_length_at(depth: usize, args: Self::Args) -> usize;
// Provided method
fn max_json_length_root(args: Self::Args) -> usize { ... }
}Required Associated Types§
Required Methods§
fn max_json_length_at(depth: usize, args: Self::Args) -> usize
Provided Methods§
fn max_json_length_root(args: Self::Args) -> usize
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.