pub struct Enumeration {
pub name: String,
pub values: RepeatedField<EnumerationValue>,
pub documentation: String,
/* private fields */
}Fields§
§name: String§values: RepeatedField<EnumerationValue>§documentation: StringImplementations§
Source§impl Enumeration
impl Enumeration
pub fn new() -> Enumeration
pub fn default_instance() -> &'static Enumeration
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_values(&mut self)
pub fn set_values(&mut self, v: RepeatedField<EnumerationValue>)
pub fn mut_values(&mut self) -> &mut RepeatedField<EnumerationValue>
pub fn take_values(&mut self) -> RepeatedField<EnumerationValue>
pub fn get_values(&self) -> &[EnumerationValue]
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 Enumeration
impl Clone for Enumeration
Source§fn clone(&self) -> Enumeration
fn clone(&self) -> Enumeration
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 Enumeration
impl Debug for Enumeration
Source§impl Default for Enumeration
impl Default for Enumeration
Source§fn default() -> Enumeration
fn default() -> Enumeration
Returns the “default value” for a type. Read more
Source§impl Message for Enumeration
impl Message for Enumeration
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 Enumeration
impl MessageStatic for Enumeration
fn new() -> Enumeration
fn descriptor_static(_: Option<Enumeration>) -> &'static MessageDescriptor
Source§impl PartialEq for Enumeration
impl PartialEq for Enumeration
Source§impl ProtobufValue for Enumeration
impl ProtobufValue for Enumeration
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 Enumeration
impl Sync for Enumeration
Auto Trait Implementations§
impl !Freeze for Enumeration
impl !RefUnwindSafe for Enumeration
impl Send for Enumeration
impl Unpin for Enumeration
impl UnwindSafe for Enumeration
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