Struct protobuf::well_known_types::Field
[−]
[src]
pub struct Field { pub kind: Field_Kind, pub cardinality: Field_Cardinality, pub number: i32, pub name: String, pub type_url: String, pub oneof_index: i32, pub packed: bool, pub json_name: String, pub default_value: String, // some fields omitted }
Fields
kind: Field_Kind
cardinality: Field_Cardinality
number: i32
name: String
type_url: String
oneof_index: i32
packed: bool
json_name: String
default_value: String
Methods
impl Field
[src]
fn new() -> Field
fn default_instance() -> &'static Field
fn clear_kind(&mut self)
fn set_kind(&mut self, v: Field_Kind)
fn get_kind(&self) -> Field_Kind
fn clear_cardinality(&mut self)
fn set_cardinality(&mut self, v: Field_Cardinality)
fn get_cardinality(&self) -> Field_Cardinality
fn clear_number(&mut self)
fn set_number(&mut self, v: i32)
fn get_number(&self) -> i32
fn clear_name(&mut self)
fn set_name(&mut self, v: String)
fn mut_name(&mut self) -> &mut String
fn take_name(&mut self) -> String
fn get_name(&self) -> &str
fn clear_type_url(&mut self)
fn set_type_url(&mut self, v: String)
fn mut_type_url(&mut self) -> &mut String
fn take_type_url(&mut self) -> String
fn get_type_url(&self) -> &str
fn clear_oneof_index(&mut self)
fn set_oneof_index(&mut self, v: i32)
fn get_oneof_index(&self) -> i32
fn clear_packed(&mut self)
fn set_packed(&mut self, v: bool)
fn get_packed(&self) -> bool
fn clear_options(&mut self)
fn set_options(&mut self, v: RepeatedField<Option>)
fn mut_options(&mut self) -> &mut RepeatedField<Option>
fn take_options(&mut self) -> RepeatedField<Option>
fn get_options(&self) -> &[Option]
fn clear_json_name(&mut self)
fn set_json_name(&mut self, v: String)
fn mut_json_name(&mut self) -> &mut String
fn take_json_name(&mut self) -> String
fn get_json_name(&self) -> &str
fn clear_default_value(&mut self)
fn set_default_value(&mut self, v: String)
fn mut_default_value(&mut self) -> &mut String
fn take_default_value(&mut self) -> String
fn get_default_value(&self) -> &str
Trait Implementations
impl PartialEq for Field
[src]
fn eq(&self, __arg_0: &Field) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Field) -> bool
This method tests for !=
.
impl Clone for Field
[src]
fn clone(&self) -> Field
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 Default for Field
[src]
impl Sync for Field
[src]
impl Message for Field
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>