[][src]Trait pb_jelly::ClosedProtoEnum

pub trait ClosedProtoEnum: ProtoEnum + Debug {
    fn name(self) -> &'static str;
}

Trait implemented by enums which are generated with the err_if_default option. Note that these enums are not forward compatible, since they do not handle unrecognized enum variants (and will fail to deserialize instead).

Note that the Default variant of the ClosedProtoEnum is not safe and should only be used for deserialization.

Required methods

fn name(self) -> &'static str

Get the name of this variant.

Loading content...

Implementors

Loading content...