pub trait ProtoOneOf: InputNode {
// Required method
fn proto_oneof_variant(&self) -> &'static str;
}Expand description
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.
Required Methods§
Sourcefn proto_oneof_variant(&self) -> &'static str
fn proto_oneof_variant(&self) -> &'static str
Returns the name of the selected variant of a oneof field.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.