Skip to main content

ProtoOneof

Trait ProtoOneof 

Source
pub trait ProtoOneof {
    // Required method
    fn proto_schema() -> Oneof;
}
Expand description

Trait responsible for generating the schema representation of a oneof.

Required Methods§

Source

fn proto_schema() -> Oneof

Returns the protobuf schema representation.

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.

Implementors§