pub trait DeserializationContext {
// Required method
fn static_context() -> Option<JsonDeserializationErrorContext>;
}
Expand description
A (optional) static context for deserialization of entity uids
This is useful when, for plumbing reasons, we can’t get the appopriate values into the dynamic
context. Primary use case is in the DeserializeAs
trait.
Required Methods§
Sourcefn static_context() -> Option<JsonDeserializationErrorContext>
fn static_context() -> Option<JsonDeserializationErrorContext>
Access the (optional) static context.
If returns None
, use the dynamic context.
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.