Function thrift::protocol::field_id

source ·
pub fn field_id(field_ident: &TFieldIdentifier) -> Result<i16>
Expand description

Extract the field id from a Thrift field identifier.

field_ident must not have TFieldIdentifier.field_type of type TType::Stop.

Return TFieldIdentifier.id if an id exists, Err otherwise.