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

Field name

Field Rule

Field type

Tag number

Default value for the field

Packed property for repeated fields

Is the field deprecated

Trait Implementations

impl Debug for Field
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Field
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Field
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Field
[src]

impl PartialEq for Field
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Field

impl Sync for Field