Struct power_protobuf_lib::Enumeration
source · pub struct Enumeration {
pub nested_mod_name: Option<Ident>,
pub name: Ident,
pub values: Vec<EnumValue>,
pub options: Vec<ProtobufOption>,
pub reserved_nums: Vec<RangeInclusive<i32>>,
pub reserved_names: Vec<Ident>,
}
Expand description
A protobuf enumerator
Fields§
§nested_mod_name: Option<Ident>
§name: Ident
enum name
values: Vec<EnumValue>
enum values
options: Vec<ProtobufOption>
enum options
reserved_nums: Vec<RangeInclusive<i32>>
enum reserved numbers
reserved_names: Vec<Ident>
enum reserved names
Trait Implementations§
source§impl Clone for Enumeration
impl Clone for Enumeration
source§fn clone(&self) -> Enumeration
fn clone(&self) -> Enumeration
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for Enumeration
impl RefUnwindSafe for Enumeration
impl !Send for Enumeration
impl !Sync 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