[][src]Struct protofish::context::MessageField

pub struct MessageField {
    pub name: String,
    pub number: u64,
    pub field_type: ValueType,
    pub multiplicity: Multiplicity,
    pub options: Vec<ProtoOption>,
    pub oneof: Option<usize>,
}

Message field details.

Fields

name: String

Field name.

number: u64

Field number.

field_type: ValueType

Field type

multiplicity: Multiplicity

True, if this field is a repeated field.

options: Vec<ProtoOption>

Field options.

oneof: Option<usize>

Index to the ´oneofstructure in the parent type if this field is part of aoneof`.

Trait Implementations

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