Struct protobuf_parser::Field
[−]
[src]
pub struct Field { pub name: String, pub rule: Rule, pub typ: FieldType, pub number: i32, pub default: Option<String>, pub packed: Option<bool>, pub deprecated: bool, }
A Protobuf Field
Fields
name: String
Field name
rule: Rule
Field Rule
typ: FieldType
Field type
number: i32
Tag number
default: Option<String>
Default value for the field
packed: Option<bool>
Packed property for repeated fields
deprecated: bool
Is the field deprecated
Trait Implementations
impl Debug for Field
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Field
[src]
fn clone(&self) -> Field
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for Field
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more