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.