pub trait ProtobufMessageEnumTraits: Send + Sync {
    // Required methods
    fn to_vec(&self) -> Vec<(&'static str, ProtobufValue)>;
    fn type_count() -> usize
       where Self: Sized;
    fn to_str(&self) -> &'static str;
    fn get_id_map() -> BTreeMap<usize, &'static str>
       where Self: Sized;
    fn as_u64(&self) -> u64;
}

Required Methods§

source

fn to_vec(&self) -> Vec<(&'static str, ProtobufValue)>

source

fn type_count() -> usizewhere Self: Sized,

source

fn to_str(&self) -> &'static str

source

fn get_id_map() -> BTreeMap<usize, &'static str>where Self: Sized,

source

fn as_u64(&self) -> u64

Implementors§