pub struct EnumerationValue {
pub name: String,
pub value: i32,
pub documentation: String,
/* private fields */
}Fields§
§name: String§value: i32§documentation: StringImplementations§
Source§impl EnumerationValue
impl EnumerationValue
pub fn new() -> EnumerationValue
pub fn default_instance() -> &'static EnumerationValue
pub fn clear_name(&mut self)
pub fn set_name(&mut self, v: String)
pub fn mut_name(&mut self) -> &mut String
pub fn take_name(&mut self) -> String
pub fn get_name(&self) -> &str
pub fn clear_value(&mut self)
pub fn set_value(&mut self, v: i32)
pub fn get_value(&self) -> i32
pub fn clear_documentation(&mut self)
pub fn set_documentation(&mut self, v: String)
pub fn mut_documentation(&mut self) -> &mut String
pub fn take_documentation(&mut self) -> String
pub fn get_documentation(&self) -> &str
Trait Implementations§
Source§impl Clone for EnumerationValue
impl Clone for EnumerationValue
Source§fn clone(&self) -> EnumerationValue
fn clone(&self) -> EnumerationValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumerationValue
impl Debug for EnumerationValue
Source§impl Default for EnumerationValue
impl Default for EnumerationValue
Source§fn default() -> EnumerationValue
fn default() -> EnumerationValue
Returns the “default value” for a type. Read more
Source§impl Message for EnumerationValue
impl Message for EnumerationValue
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<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn into_any(self: Box<Self>) -> Box<dyn Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn type_id(&self) -> TypeId
Source§impl MessageStatic for EnumerationValue
impl MessageStatic for EnumerationValue
fn new() -> EnumerationValue
fn descriptor_static(_: Option<EnumerationValue>) -> &'static MessageDescriptor
Source§impl PartialEq for EnumerationValue
impl PartialEq for EnumerationValue
Source§impl ProtobufValue for EnumerationValue
impl ProtobufValue for EnumerationValue
fn as_ref(&self) -> ProtobufValueRef<'_>
fn as_any(&self) -> &(dyn Any + 'static)
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
impl StructuralPartialEq for EnumerationValue
impl Sync for EnumerationValue
Auto Trait Implementations§
impl !Freeze for EnumerationValue
impl !RefUnwindSafe for EnumerationValue
impl Send for EnumerationValue
impl Unpin for EnumerationValue
impl UnwindSafe for EnumerationValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more