pub enum MessageRef {
External(ExternalRef),
Internal(InternalRef),
}Expand description
A Message Reference (Section 5.3.4): either an External Reference into a
loaded asyncapi_imports document, or an Internal Reference of the form
#/components/messages/<id> resolving to an inline Message Schema
Object (Section 5.4.1).
Variants§
External(ExternalRef)
Internal(InternalRef)
Implementations§
Trait Implementations§
Source§impl Clone for MessageRef
impl Clone for MessageRef
Source§fn clone(&self) -> MessageRef
fn clone(&self) -> MessageRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageRef
impl Debug for MessageRef
Source§impl<'de> Deserialize<'de> for MessageRef
impl<'de> Deserialize<'de> for MessageRef
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 MessageRef
impl RefUnwindSafe for MessageRef
impl Send for MessageRef
impl Sync for MessageRef
impl Unpin for MessageRef
impl UnsafeUnpin for MessageRef
impl UnwindSafe for MessageRef
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