pub trait JsonObjectDetails: Serialize + DeserializeOwned {
type Identifier: Display;
const PREFIX: &'static str;
// Required method
fn object_id(&self) -> &Self::Identifier;
}Expand description
Default way to implement ObjectDetails, via json serialization.
Required Associated Constants§
Required Associated Types§
type Identifier: Display
Required Methods§
fn object_id(&self) -> &Self::Identifier
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.