Struct pb_jelly::FieldDescriptor
source · pub struct FieldDescriptor {
pub name: &'static str,
pub full_name: &'static str,
pub index: u32,
pub number: u32,
pub typ: Type,
pub label: Label,
pub oneof_index: Option<u32>,
}
Expand description
Describes a field within a message. Provides rudimentary support for the proto field reflection API, with the intention of being able to serialize or introspect fields individually without having knowledge of the structure of the specific message itself. For more info, see: https://developers.google.com/protocol-buffers/docs/techniques https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto
Fields§
§name: &'static str
The name of this field, not including its scope.
full_name: &'static str
The fully-qualified name of this field, scope delimited by periods.
index: u32
The index of this field, which has values from 0 inclusive to n exclusive, where n is the number of fields in this message.
number: u32
The number assigned to the field in the proto declaration.
typ: Type
§label: Label
§oneof_index: Option<u32>
If this field is part of a oneof group, this is an index into the oneofs
of the parent
message. Otherwise None.