[][src]Struct thrift::protocol::TFieldIdentifier

pub struct TFieldIdentifier {
    pub name: Option<String>,
    pub field_type: TType,
    pub id: Option<i16>,
}

Thrift field identifier.

Fields

name: Option<String>

Name of the Thrift field.

None if it's not sent over the wire.

field_type: TType

Field type.

This may be a primitive, container, or a struct.

id: Option<i16>

Thrift field id.

None only if field_type is TType::Stop.

Methods

impl TFieldIdentifier[src]

pub fn new<N, S, I>(name: N, field_type: TType, id: I) -> TFieldIdentifier where
    N: Into<Option<S>>,
    S: Into<String>,
    I: Into<Option<i16>>, 
[src]

Create a TFieldIdentifier for a field named name with type field_type and field id id.

id should be None if field_type is TType::Stop.

Trait Implementations

impl Clone for TFieldIdentifier[src]

impl Eq for TFieldIdentifier[src]

impl PartialEq<TFieldIdentifier> for TFieldIdentifier[src]

impl Debug for TFieldIdentifier[src]

impl StructuralPartialEq for TFieldIdentifier[src]

impl StructuralEq for TFieldIdentifier[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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