pub trait JsonObject: JsonDeserialize {
// Provided method
fn deserialize_object<'bytes, B: BytesLike<'bytes>, S: Stack>(
json: B,
) -> Result<Self, JsonError<'bytes, B, S>> { ... }
}
Expand description
An item which can deserialized from a JSON serialization.
Provided Methods§
Sourcefn deserialize_object<'bytes, B: BytesLike<'bytes>, S: Stack>(
json: B,
) -> Result<Self, JsonError<'bytes, B, S>>
fn deserialize_object<'bytes, B: BytesLike<'bytes>, S: Stack>( json: B, ) -> Result<Self, JsonError<'bytes, B, S>>
Deserialize this item from an JSON-serialized blob.
This will deserialize the object present without limitation. If a bound is desired, bound the length of input or deserialize into types which define bounds.
This method SHOULD NOT be overriden.
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.