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§

source

fn static_context() -> Option<JsonDeserializationErrorContext>

Access the (optional) static context. If returns None, use the dynamic context.

Object Safety§

This trait is not object safe.

Implementors§