pub struct Proto2DescriptorProto {
pub enum_type: Option<Vec<Proto2EnumDescriptorProto>>,
pub field: Option<Vec<Proto2FieldDescriptorProto>>,
pub name: Option<String>,
pub nested_type: Option<Vec<Proto2DescriptorProto>>,
pub oneof_decl: Option<Vec<Proto2OneofDescriptorProto>>,
pub visibility: Option<String>,
}Expand description
Describes a message type.
This type is not used in any activity, and only used as part of another schema.
Fields§
§enum_type: Option<Vec<Proto2EnumDescriptorProto>>no description provided
field: Option<Vec<Proto2FieldDescriptorProto>>no description provided
name: Option<String>no description provided
nested_type: Option<Vec<Proto2DescriptorProto>>no description provided
oneof_decl: Option<Vec<Proto2OneofDescriptorProto>>no description provided
visibility: Option<String>Support for export and local keywords on enums.
Trait Implementations§
Source§impl Clone for Proto2DescriptorProto
impl Clone for Proto2DescriptorProto
Source§fn clone(&self) -> Proto2DescriptorProto
fn clone(&self) -> Proto2DescriptorProto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Proto2DescriptorProto
impl Debug for Proto2DescriptorProto
Source§impl Default for Proto2DescriptorProto
impl Default for Proto2DescriptorProto
Source§fn default() -> Proto2DescriptorProto
fn default() -> Proto2DescriptorProto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Proto2DescriptorProto
impl<'de> Deserialize<'de> for Proto2DescriptorProto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Proto2DescriptorProto
impl Serialize for Proto2DescriptorProto
impl Part for Proto2DescriptorProto
Auto Trait Implementations§
impl Freeze for Proto2DescriptorProto
impl RefUnwindSafe for Proto2DescriptorProto
impl Send for Proto2DescriptorProto
impl Sync for Proto2DescriptorProto
impl Unpin for Proto2DescriptorProto
impl UnwindSafe for Proto2DescriptorProto
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