pub trait ContractModel: Serialize + DeserializeOwned {
const SCHEMA: &'static str;
}Expand description
A type that models one named schema of the vendored contract.
The association is what makes the coverage gate possible: without a
declared schema name, “is every response schema modelled?” would be a
question only a human could answer, and the answer would rot. It is also the
documentation a reader wants — which published shape is this type.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".