Skip to main content

Module values

Module values 

Source
Expand description

Shared value-rendering primitives (Value, NamedArg, Arguments) used by both relation and expression textification.

Structs§

Arguments
A comma-separated argument list: positional arguments first, then named arguments. Renders as arg, arg, name=arg, or _ when empty.
NamedArg

Enums§

Value

Traits§

ValueEnum
A trait for enum types that can be rendered as &VariantName in the text format.

Functions§

decode_enum_field 🔒
Decode a raw protobuf enum field (i32) into its shared Value rendering: convert to the enum type and then to its &Variant string, or produce a field-specific diagnostic when the raw value matches no variant.
enum_str_value 🔒
Converts an ValueEnum::as_enum_str result into a Value. Shared by the blanket From<&T> impl below and by callers that only have an owned enum value (and so can’t borrow it for the lifetime Value<'a> requires).