pub struct DescriptorProto {
pub name: String,
pub field: Vec<FieldDescriptorProto>,
pub nested_type: Vec<DescriptorProto>,
pub enum_type: Vec<EnumDescriptorProto>,
pub oneof_decl: Vec<OneofDescriptorProto>,
pub extension: Vec<FieldDescriptorProto>,
pub extension_range: Option<Vec<DescriptorRange>>,
pub reserved_range: Option<Vec<DescriptorRange>>,
pub reserved_name: Option<Vec<String>>,
pub visibility: Option<SymbolVisibility>,
pub options: Option<Options>,
}Expand description
A message type.
Fields§
§name: String§field: Vec<FieldDescriptorProto>§nested_type: Vec<DescriptorProto>§enum_type: Vec<EnumDescriptorProto>§oneof_decl: Vec<OneofDescriptorProto>§extension: Vec<FieldDescriptorProto>§extension_range: Option<Vec<DescriptorRange>>§reserved_range: Option<Vec<DescriptorRange>>§reserved_name: Option<Vec<String>>§visibility: Option<SymbolVisibility>§options: Option<Options>Implementations§
Trait Implementations§
Source§impl Clone for DescriptorProto
impl Clone for DescriptorProto
Source§impl Debug for DescriptorProto
impl Debug for DescriptorProto
Source§impl PartialEq for DescriptorProto
impl PartialEq for DescriptorProto
Source§impl Serialize for DescriptorProto
impl Serialize for DescriptorProto
impl StructuralPartialEq for DescriptorProto
Auto Trait Implementations§
impl Forget for DescriptorProto
impl Freeze for DescriptorProto
impl RefUnwindSafe for DescriptorProto
impl Send for DescriptorProto
impl Sync for DescriptorProto
impl Unpin for DescriptorProto
impl UnsafeUnpin 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