Struct thrift::protocol::TFieldIdentifier
[−]
[src]
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]
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>>
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]
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 !=.