Module traits

Module traits 

Source
Expand description

Module providing introspection traits for prost-generated protobuf types.

Traits§

InputNode
Trait for all Rust types that represent input tree node types.
ProtoEnum
Trait for all Rust types that represent protobuf enums. These are always represented as a Rust enum with no contained values for any of the variants.
ProtoMessage
Trait for all Rust types that represent protobuf messages. These are always structs for which all fields implement InputNode.
ProtoOneOf
Trait for all Rust types that represent protobuf’s oneof abstraction. In the world of protobuf, these aren’t really a thing of their own, but in Rust, they are defined as enums, each variant containing a one-tuple of some type implementing InputNode.
ProtoPrimitive
Trait for Rust types that map to the protobuf primitive types.