Trait pb_jelly::OpenProtoEnum[][src]

pub trait OpenProtoEnum: ProtoEnum {
    fn name(self) -> Option<&'static str>;
fn is_known(self) -> bool; }
Expand description

Trait implemented by enums to help with serialization and deserialization.

Note that this is not a closed enum.

Required methods

Get the name of this variant, if it is known.

Whether or not this enum variant is “known” (i.e. there is an associate constant with it).

Implementors