Struct serde_protobuf::descriptor::FieldDescriptor [−][src]
pub struct FieldDescriptor { /* fields omitted */ }Expand description
A descriptor for a single protocol buffer message field.
Implementations
pub fn new<S>(
name: S,
number: i32,
field_label: FieldLabel,
field_type: InternalFieldType,
default_value: Option<Value>
) -> FieldDescriptor where
S: Into<String>,
pub fn new<S>(
name: S,
number: i32,
field_label: FieldLabel,
field_type: InternalFieldType,
default_value: Option<Value>
) -> FieldDescriptor where
S: Into<String>,
Creates a new field descriptor.
Reads a field descriptor from a parsed Protobuf descriptor.
The label of the field.
Whether the field is repeated.
The type of the field.
The default value of the field.