[][src]Struct protofish::context::EnumInfo

pub struct EnumInfo {
    pub name: String,
    pub full_name: String,
    pub self_ref: EnumRef,
    pub fields: Vec<EnumField>,
    // some fields omitted
}

Enum details

Fields

name: String

Enum name.

full_name: String

Full message name, including package and parent type names.

self_ref: EnumRef

EnumRef that references this enum.

fields: Vec<EnumField>

Enum fields.

Implementations

impl EnumInfo[src]

pub fn field_by_value(&self, value: i64) -> Option<&EnumField>[src]

Gets a field by value.

If the field is aliased, an undefined field alias is returned.

Trait Implementations

impl Debug for EnumInfo[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, 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.