pub trait AsContent {
type Output: Serialize;
// Required method
fn as_content(&self) -> Self::Output;
}Expand description
Trait for converting a type into a serializable message content that conforms to the OpenC2 message content structure.
This allows for types such as Message<Command> to be serialized correctly as OpenC2 message contents.
Required Associated Types§
Required Methods§
fn as_content(&self) -> Self::Output
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".