Expand description
Structs§
- Arguments
- A comma-separated argument list: positional arguments first, then named
arguments. Renders as
arg, arg, name=arg, or_when empty. - Named
Arg
Enums§
Traits§
- Value
Enum - A trait for enum types that can be rendered as
&VariantNamein the text format.
Functions§
- decode_
enum_ 🔒field - Decode a raw protobuf enum field (
i32) into its sharedValuerendering: convert to the enum type and then to its&Variantstring, or produce a field-specific diagnostic when the raw value matches no variant. - enum_
str_ 🔒value - Converts an
ValueEnum::as_enum_strresult into aValue. Shared by the blanketFrom<&T>impl below and by callers that only have an owned enum value (and so can’t borrow it for the lifetimeValue<'a>requires).