[][src]Struct prost_types::EnumOptions

pub struct EnumOptions {
    pub allow_alias: Option<bool>,
    pub deprecated: Option<bool>,
    pub uninterpreted_option: Vec<UninterpretedOption>,
}

Fields

allow_alias: Option<bool>

Set this option to true to allow mapping different tag names to the same value.

deprecated: Option<bool>

Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.

uninterpreted_option: Vec<UninterpretedOption>

The parser stores options it doesn't recognize here. See above.

Methods

impl EnumOptions[src]

pub fn allow_alias(&self) -> bool[src]

Returns the value of allow_alias, or the default value if allow_alias is unset.

pub fn deprecated(&self) -> bool[src]

Returns the value of deprecated, or the default value if deprecated is unset.

Trait Implementations

impl Clone for EnumOptions[src]

impl Debug for EnumOptions[src]

impl Default for EnumOptions[src]

impl Message for EnumOptions[src]

impl PartialEq<EnumOptions> for EnumOptions[src]

impl StructuralPartialEq for EnumOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.