pub struct Message {
pub name: Option<String>,
pub payload: Value,
pub headers: Option<Value>,
}Expand description
A Message Schema Object (Section 5.4.1): an inline, AsyncAPI 3.0 Message
Object-shaped definition, used when a document has no asyncapi_imports
(or a specific message isn’t covered by one) and instead defines its
message shape directly under components.messages.
Fields§
§name: Option<String>§payload: ValueA JSON Schema describing the message payload.
headers: Option<Value>A JSON Schema describing the message headers.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more