pub enum MessageDescription<'a> {
Internal(&'a TopLevelDescriptor<'a>),
External {
name: &'a str,
import_path: &'a str,
},
}
Expand description
A description of a message type.
Variants§
Internal(&'a TopLevelDescriptor<'a>)
An internally-defined type, described by the descriptor.
External
An externally-defined type.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for MessageDescription<'a>
impl<'a> Clone for MessageDescription<'a>
Source§fn clone(&self) -> MessageDescription<'a>
fn clone(&self) -> MessageDescription<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for MessageDescription<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageDescription<'a>
impl<'a> RefUnwindSafe for MessageDescription<'a>
impl<'a> Send for MessageDescription<'a>
impl<'a> Sync for MessageDescription<'a>
impl<'a> Unpin for MessageDescription<'a>
impl<'a> UnwindSafe for MessageDescription<'a>
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