#[repr(i32)]pub enum Enum {
Show 13 variants
Unspecified = 0,
Serializer = 1,
Len = 2,
StructSer = 3,
V = 4,
Value = 5,
Deserializer = 6,
Fields = 7,
Formatter = 8,
Map = 9,
K = 10,
Variant = 11,
Test = 20,
}Variants§
Unspecified = 0
Serializer = 1
Len = 2
StructSer = 3
V = 4
Value = 5
Deserializer = 6
Fields = 7
Formatter = 8
Map = 9
K = 10
Variant = 11
Test = 20
Implementations§
Source§impl Enum
impl Enum
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl<'de> Deserialize<'de> for Enum
impl<'de> Deserialize<'de> for Enum
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Enum
impl Ord for Enum
Source§impl PartialOrd for Enum
impl PartialOrd for Enum
impl Copy for Enum
impl Eq for Enum
impl StructuralPartialEq for Enum
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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