Struct protobuf_native::FileDescriptorProto
source · pub struct FileDescriptorProto { /* private fields */ }
Expand description
Describes a complete .proto file.
Implementations§
source§impl FileDescriptorProto
impl FileDescriptorProto
sourcepub fn copy_from(self: Pin<&mut Self>, from: &FileDescriptorProto)
pub fn copy_from(self: Pin<&mut Self>, from: &FileDescriptorProto)
Make this file descriptor proto into a copy of the given file descriptor proto.
sourcepub fn merge_from(self: Pin<&mut Self>, from: &FileDescriptorProto)
pub fn merge_from(self: Pin<&mut Self>, from: &FileDescriptorProto)
Merge the fields of the file descriptor proto into this file descriptor proto.
sourcepub fn dependency_size(&self) -> usize
pub fn dependency_size(&self) -> usize
Returns the number of entries in the dependency
field.
sourcepub fn dependency(&self, i: usize) -> &[u8] ⓘ
pub fn dependency(&self, i: usize) -> &[u8] ⓘ
Returns the i
th entry in the dependency
field.
sourcepub fn message_type_size(&self) -> usize
pub fn message_type_size(&self) -> usize
Returns the number of entries in the message_type
field.
sourcepub fn message_type(&self, i: usize) -> &DescriptorProto
pub fn message_type(&self, i: usize) -> &DescriptorProto
Returns the i
th entry in the message_type
field.
Trait Implementations§
source§impl Drop for FileDescriptorProto
impl Drop for FileDescriptorProto
source§impl MessageLite for FileDescriptorProto
impl MessageLite for FileDescriptorProto
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 FileDescriptorProto
Auto Trait Implementations§
impl Freeze for FileDescriptorProto
impl RefUnwindSafe for FileDescriptorProto
impl Send for FileDescriptorProto
impl Sync for FileDescriptorProto
impl !Unpin for FileDescriptorProto
impl UnwindSafe for FileDescriptorProto
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