pub struct MessageDescriptor<'a> { /* private fields */ }
Expand description
A message descriptor.
Implementations§
Source§impl<'a> MessageDescriptor<'a>
impl<'a> MessageDescriptor<'a>
Sourcepub const fn new(
name: &'a str,
comment: &'a str,
fields: &'a [FieldDescriptor<'a>],
oneofs: &'a [OneofDescriptor<'a>],
messages: &'a [MessageDescriptor<'a>],
) -> Self
pub const fn new( name: &'a str, comment: &'a str, fields: &'a [FieldDescriptor<'a>], oneofs: &'a [OneofDescriptor<'a>], messages: &'a [MessageDescriptor<'a>], ) -> Self
Creates a new message descriptor.
Trait Implementations§
Source§impl<'a> Clone for MessageDescriptor<'a>
impl<'a> Clone for MessageDescriptor<'a>
Source§fn clone(&self) -> MessageDescriptor<'a>
fn clone(&self) -> MessageDescriptor<'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 moreSource§impl<'a> Debug for MessageDescriptor<'a>
impl<'a> Debug for MessageDescriptor<'a>
Source§impl<'a> Hash for MessageDescriptor<'a>
impl<'a> Hash for MessageDescriptor<'a>
Source§impl<'a> PartialEq for MessageDescriptor<'a>
impl<'a> PartialEq for MessageDescriptor<'a>
impl<'a> Copy for MessageDescriptor<'a>
impl<'a> Eq for MessageDescriptor<'a>
impl<'a> StructuralPartialEq for MessageDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageDescriptor<'a>
impl<'a> RefUnwindSafe for MessageDescriptor<'a>
impl<'a> Send for MessageDescriptor<'a>
impl<'a> Sync for MessageDescriptor<'a>
impl<'a> Unpin for MessageDescriptor<'a>
impl<'a> UnwindSafe for MessageDescriptor<'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