Struct prost_codegen::google::protobuf::DescriptorProto
[−]
[src]
pub struct DescriptorProto { pub name: Option<String>, pub field: Vec<FieldDescriptorProto>, pub extension: Vec<FieldDescriptorProto>, pub nested_type: Vec<DescriptorProto>, pub enum_type: Vec<EnumDescriptorProto>, pub extension_range: Vec<ExtensionRange>, pub oneof_decl: Vec<OneofDescriptorProto>, pub options: Option<MessageOptions>, pub reserved_range: Vec<ReservedRange>, pub reserved_name: Vec<String>, }
Describes a message type.
Fields
name: Option<String>
field: Vec<FieldDescriptorProto>
extension: Vec<FieldDescriptorProto>
nested_type: Vec<DescriptorProto>
enum_type: Vec<EnumDescriptorProto>
extension_range: Vec<ExtensionRange>
oneof_decl: Vec<OneofDescriptorProto>
options: Option<MessageOptions>
reserved_range: Vec<ReservedRange>
reserved_name: Vec<String>
Reserved field names, which may not be used by fields in the same message. A given name may only be reserved once.
Methods
impl DescriptorProto
[src]
Trait Implementations
impl Clone for DescriptorProto
[src]
fn clone(&self) -> DescriptorProto
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for DescriptorProto
[src]
impl PartialEq for DescriptorProto
[src]
fn eq(&self, __arg_0: &DescriptorProto) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DescriptorProto) -> bool
This method tests for !=
.