Trait ProtobufMessageEnumTraits

Source
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() -> usize
where 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§