pub fn from_u8(byte: u8) -> Option<Type> {
        match byte {
            1 => Some(Type::Prevote),
            2 => Some(Type::Precommit),
            _ => None,
        }
    }
/// Deserialize this type from a byte
Deserialize this type from a byte
Deserialize this type from a byte
pub fn from_u8(byte: u8) -> Option<Type> {
        match byte {
            1 => Some(Type::Prevote),
            2 => Some(Type::Precommit),
            _ => None,
        }
    }
pub fn from_u8 ( byte : u8 ) -> Option < Type > { match byte { 1 => Some ( Type :: Prevote ) , 2 => Some ( Type :: Precommit ) , _ => None , } }
Deserialize this type from a byte
Deserialize this type from a byte
byte
u8
byte
u8