Enum protobuf_parser::Rule [] [src]

pub enum Rule {
    Optional,
    Repeated,
    Required,
}

A field rule

Variants

A well-formed message can have zero or one of this field (but not more than one).

This field can be repeated any number of times (including zero) in a well-formed message. The order of the repeated values will be preserved.

A well-formed message must have exactly one of this field.

Trait Implementations

impl Debug for Rule
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Rule
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Rule
[src]

impl Eq for Rule
[src]

impl PartialEq for Rule
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Hash for Rule
[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

Auto Trait Implementations

impl Send for Rule

impl Sync for Rule