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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)