Struct protobuf_native::DescriptorProto
source · pub struct DescriptorProto { /* private fields */ }
Expand description
Describes a message type.
Implementations§
Trait Implementations§
source§impl Drop for DescriptorProto
impl Drop for DescriptorProto
source§impl MessageLite for DescriptorProto
impl MessageLite for DescriptorProto
source§fn clear(self: Pin<&mut Self>)
fn clear(self: Pin<&mut Self>)
Clears all fields of the message and set them to their default values. Read more
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Quickly checks if all required fields have been set.
source§fn merge_from_coded_stream(
self: Pin<&mut Self>,
input: Pin<&mut CodedInputStream<'_>>,
) -> Result<(), OperationFailedError>
fn merge_from_coded_stream( self: Pin<&mut Self>, input: Pin<&mut CodedInputStream<'_>>, ) -> Result<(), OperationFailedError>
Reads a protocol buffer from the stream and merges it into this message. Read more
source§fn serialize_to_coded_stream(
&self,
output: Pin<&mut CodedOutputStream<'_>>,
) -> Result<(), OperationFailedError>
fn serialize_to_coded_stream( &self, output: Pin<&mut CodedOutputStream<'_>>, ) -> Result<(), OperationFailedError>
Writes a protocol buffer of this message to the given output. Read more
source§fn serialize_to_zero_copy_stream(
&self,
output: Pin<&mut dyn ZeroCopyOutputStream>,
) -> Result<(), OperationFailedError>
fn serialize_to_zero_copy_stream( &self, output: Pin<&mut dyn ZeroCopyOutputStream>, ) -> Result<(), OperationFailedError>
Writes the message to the given zero-copy output stream. Read more
source§fn serialize_to_writer(
&self,
output: &mut dyn Write,
) -> Result<(), OperationFailedError>
fn serialize_to_writer( &self, output: &mut dyn Write, ) -> Result<(), OperationFailedError>
impl Message for DescriptorProto
Auto Trait Implementations§
impl Freeze for DescriptorProto
impl RefUnwindSafe for DescriptorProto
impl Send for DescriptorProto
impl Sync for DescriptorProto
impl !Unpin for DescriptorProto
impl UnwindSafe for DescriptorProto
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