Struct power_protobuf_lib::EnumValue
source · pub struct EnumValue {
pub name: Ident,
pub variant_name: Ident,
pub proto_name: LitStr,
pub tag: Option<LitInt>,
pub options: Option<Punctuated<ProtobufOption, Comma>>,
}
Expand description
A protobuf enumeration field
Fields§
§name: Ident
enum value name
variant_name: Ident
variant name from Self::name
proto_name: LitStr
proto_name from Self::name
tag: Option<LitInt>
enum value number
options: Option<Punctuated<ProtobufOption, Comma>>
enum value options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumValue
impl RefUnwindSafe for EnumValue
impl !Send for EnumValue
impl !Sync for EnumValue
impl Unpin for EnumValue
impl UnwindSafe for EnumValue
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