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 options: RepeatedField<Option>, 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
options: RepeatedField<Option>
json_name: String
default_value: String
Methods
impl Field
[src]
impl Field
pub fn new() -> Field
[src]
pub fn new() -> Field
pub fn default_instance() -> &'static Field
[src]
pub fn default_instance() -> &'static Field
pub fn clear_kind(&mut self)
[src]
pub fn clear_kind(&mut self)
pub fn set_kind(&mut self, v: Field_Kind)
[src]
pub fn set_kind(&mut self, v: Field_Kind)
pub fn get_kind(&self) -> Field_Kind
[src]
pub fn get_kind(&self) -> Field_Kind
pub fn clear_cardinality(&mut self)
[src]
pub fn clear_cardinality(&mut self)
pub fn set_cardinality(&mut self, v: Field_Cardinality)
[src]
pub fn set_cardinality(&mut self, v: Field_Cardinality)
pub fn get_cardinality(&self) -> Field_Cardinality
[src]
pub fn get_cardinality(&self) -> Field_Cardinality
pub fn clear_number(&mut self)
[src]
pub fn clear_number(&mut self)
pub fn set_number(&mut self, v: i32)
[src]
pub fn set_number(&mut self, v: i32)
pub fn get_number(&self) -> i32
[src]
pub fn get_number(&self) -> i32
pub fn clear_name(&mut self)
[src]
pub fn clear_name(&mut self)
pub fn set_name(&mut self, v: String)
[src]
pub fn set_name(&mut self, v: String)
pub fn mut_name(&mut self) -> &mut String
[src]
pub fn mut_name(&mut self) -> &mut String
pub fn take_name(&mut self) -> String
[src]
pub fn take_name(&mut self) -> String
pub fn get_name(&self) -> &str
[src]
pub fn get_name(&self) -> &str
pub fn clear_type_url(&mut self)
[src]
pub fn clear_type_url(&mut self)
pub fn set_type_url(&mut self, v: String)
[src]
pub fn set_type_url(&mut self, v: String)
pub fn mut_type_url(&mut self) -> &mut String
[src]
pub fn mut_type_url(&mut self) -> &mut String
pub fn take_type_url(&mut self) -> String
[src]
pub fn take_type_url(&mut self) -> String
pub fn get_type_url(&self) -> &str
[src]
pub fn get_type_url(&self) -> &str
pub fn clear_oneof_index(&mut self)
[src]
pub fn clear_oneof_index(&mut self)
pub fn set_oneof_index(&mut self, v: i32)
[src]
pub fn set_oneof_index(&mut self, v: i32)
pub fn get_oneof_index(&self) -> i32
[src]
pub fn get_oneof_index(&self) -> i32
pub fn clear_packed(&mut self)
[src]
pub fn clear_packed(&mut self)
pub fn set_packed(&mut self, v: bool)
[src]
pub fn set_packed(&mut self, v: bool)
pub fn get_packed(&self) -> bool
[src]
pub fn get_packed(&self) -> bool
pub fn clear_options(&mut self)
[src]
pub fn clear_options(&mut self)
pub fn set_options(&mut self, v: RepeatedField<Option>)
[src]
pub fn set_options(&mut self, v: RepeatedField<Option>)
pub fn mut_options(&mut self) -> &mut RepeatedField<Option>
[src]
pub fn mut_options(&mut self) -> &mut RepeatedField<Option>
pub fn take_options(&mut self) -> RepeatedField<Option>
[src]
pub fn take_options(&mut self) -> RepeatedField<Option>
pub fn get_options(&self) -> &[Option]
[src]
pub fn get_options(&self) -> &[Option]
pub fn clear_json_name(&mut self)
[src]
pub fn clear_json_name(&mut self)
pub fn set_json_name(&mut self, v: String)
[src]
pub fn set_json_name(&mut self, v: String)
pub fn mut_json_name(&mut self) -> &mut String
[src]
pub fn mut_json_name(&mut self) -> &mut String
pub fn take_json_name(&mut self) -> String
[src]
pub fn take_json_name(&mut self) -> String
pub fn get_json_name(&self) -> &str
[src]
pub fn get_json_name(&self) -> &str
pub fn clear_default_value(&mut self)
[src]
pub fn clear_default_value(&mut self)
pub fn set_default_value(&mut self, v: String)
[src]
pub fn set_default_value(&mut self, v: String)
pub fn mut_default_value(&mut self) -> &mut String
[src]
pub fn mut_default_value(&mut self) -> &mut String
pub fn take_default_value(&mut self) -> String
[src]
pub fn take_default_value(&mut self) -> String
pub fn get_default_value(&self) -> &str
[src]
pub fn get_default_value(&self) -> &str
Trait Implementations
impl PartialEq for Field
[src]
impl PartialEq for Field
fn eq(&self, other: &Field) -> bool
[src]
fn eq(&self, other: &Field) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Field) -> bool
[src]
fn ne(&self, other: &Field) -> bool
This method tests for !=
.
impl Clone for Field
[src]
impl Clone for Field
fn clone(&self) -> Field
[src]
fn clone(&self) -> Field
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Field
[src]
impl Default for Field
impl Sync for Field
[src]
impl Sync for Field
impl Message for Field
[src]
impl Message for Field
fn is_initialized(&self) -> bool
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
[src]
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
[src]
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
[src]
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
[src]
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
[src]
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
[src]
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
fn check_initialized(&self) -> ProtobufResult<()>
[src]
fn check_initialized(&self) -> ProtobufResult<()>
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
fn type_id(&self) -> TypeId
[src]
fn type_id(&self) -> TypeId
impl MessageStatic for Field
[src]
impl MessageStatic for Field
fn new() -> Field
[src]
fn new() -> Field
fn descriptor_static(_: Option<Field>) -> &'static MessageDescriptor
[src]
fn descriptor_static(_: Option<Field>) -> &'static MessageDescriptor
impl Clear for Field
[src]
impl Clear for Field
impl Debug for Field
[src]
impl Debug for Field
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ProtobufValue for Field
[src]
impl ProtobufValue for Field
fn as_ref(&self) -> ProtobufValueRef
[src]
fn as_ref(&self) -> ProtobufValueRef
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>