pub enum ChannelRef {
External(ExternalRef),
Bare(String),
}Expand description
A Channel Reference (Section 5.3.5): an External Reference (required
whenever the document declares any asyncapi_imports), or — only when
the document has no asyncapi_imports at all — a bare channel-name
string. Never an Internal Reference: channel addressing has no inline
schema counterpart to components.messages.
Variants§
External(ExternalRef)
Bare(String)
Implementations§
Trait Implementations§
Source§impl Clone for ChannelRef
impl Clone for ChannelRef
Source§fn clone(&self) -> ChannelRef
fn clone(&self) -> ChannelRef
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 ChannelRef
impl Debug for ChannelRef
Source§impl<'de> Deserialize<'de> for ChannelRef
impl<'de> Deserialize<'de> for ChannelRef
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 ChannelRef
impl RefUnwindSafe for ChannelRef
impl Send for ChannelRef
impl Sync for ChannelRef
impl Unpin for ChannelRef
impl UnsafeUnpin for ChannelRef
impl UnwindSafe for ChannelRef
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