[][src]Struct prost_types::EnumDescriptorProto

pub struct EnumDescriptorProto {
    pub name: Option<String>,
    pub value: Vec<EnumValueDescriptorProto>,
    pub options: Option<EnumOptions>,
    pub reserved_range: Vec<EnumReservedRange>,
    pub reserved_name: Vec<String>,
}

Describes an enum type.

Fields

name: Option<String>value: Vec<EnumValueDescriptorProto>options: Option<EnumOptions>reserved_range: Vec<EnumReservedRange>

Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.

reserved_name: Vec<String>

Reserved enum value names, which may not be reused. A given name may only be reserved once.

Methods

impl EnumDescriptorProto[src]

pub fn name(&self) -> &str[src]

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

Trait Implementations

impl Clone for EnumDescriptorProto[src]

impl Debug for EnumDescriptorProto[src]

impl Default for EnumDescriptorProto[src]

impl Message for EnumDescriptorProto[src]

impl PartialEq<EnumDescriptorProto> for EnumDescriptorProto[src]

impl StructuralPartialEq for EnumDescriptorProto[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.