pub struct FieldDescriptorProto {
pub name: String,
pub number: f64,
pub label: Option<FieldLabel>,
pub type: Option<FieldType>,
pub type_name: Option<String>,
pub extendee: Option<String>,
pub json_name: Option<String>,
pub default_value: Option<String>,
pub proto3_optional: bool,
pub oneof_index: Option<usize>,
pub options: Option<Options>,
}Expand description
One field, extension, or synthesised map-entry leaf.
Fields§
§name: String§number: f64§label: Option<FieldLabel>§type: Option<FieldType>§type_name: Option<String>Set for message, enum and group field types (resolution deferred).
extendee: Option<String>For an extend member: the message being extended, as written.
json_name: Option<String>The json_name = "..." pseudo-option, lifted out of options.
default_value: Option<String>The default = ... pseudo-option, lifted out of options. Always
a string, as in descriptor.proto; the literal is kept as written.
proto3_optional: boolproto3 explicit optional, which synthesises a single-field oneof.
oneof_index: Option<usize>The oneof this field belongs to, as an index into the message’s
oneof_decl.
options: Option<Options>Trait Implementations§
Source§impl Clone for FieldDescriptorProto
impl Clone for FieldDescriptorProto
Source§impl Debug for FieldDescriptorProto
impl Debug for FieldDescriptorProto
Source§impl Default for FieldDescriptorProto
impl Default for FieldDescriptorProto
Source§impl PartialEq for FieldDescriptorProto
impl PartialEq for FieldDescriptorProto
Source§impl Serialize for FieldDescriptorProto
impl Serialize for FieldDescriptorProto
impl StructuralPartialEq for FieldDescriptorProto
Auto Trait Implementations§
impl Forget for FieldDescriptorProto
impl Freeze for FieldDescriptorProto
impl RefUnwindSafe for FieldDescriptorProto
impl Send for FieldDescriptorProto
impl Sync for FieldDescriptorProto
impl Unpin for FieldDescriptorProto
impl UnsafeUnpin for FieldDescriptorProto
impl UnwindSafe for FieldDescriptorProto
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