Struct protobuf_native::Descriptor
source · pub struct Descriptor {}
Expand description
Describes a type of protocol message, or a particular group within a message.
To obtain the Descriptor
for a given message object, call
[Message::get_descriptor
]. Generated message classes also have a static
method called descriptor
which returns the type’s descriptor. Use
DescriptorPool
to construct your own descriptors.
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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