Struct rift::protocol::TFieldIdentifier
[−]
[src]
pub struct TFieldIdentifier { pub name: Option<String>, pub field_type: TType, pub id: Option<i16>, }
Identifies a Thrift field.
Fields
name: Option<String>
Name of the encoded Thrift field.
This field should be set be callers of TOutputProtocol
. It
may not be set on received field identifiers.
field_type: TType
Field type. One of TType
.
id: Option<i16>
Thrift field id. None
only if field_type
is TType::Stop
.
Methods
impl TFieldIdentifier
[src]
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>>,
N: Into<Option<S>>,
S: Into<String>,
I: Into<Option<i16>>,
Convenience constructor to create a new TFieldIdentifier
instance.
Trait Implementations
impl Clone for TFieldIdentifier
[src]
fn clone(&self) -> TFieldIdentifier
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for TFieldIdentifier
[src]
impl Eq for TFieldIdentifier
[src]
impl PartialEq for TFieldIdentifier
[src]
fn eq(&self, __arg_0: &TFieldIdentifier) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TFieldIdentifier) -> bool
This method tests for !=
.