ableos/dev/src/idl/protocol.rs

18 lines
297 B
Rust
Raw Normal View History

2024-08-30 12:31:45 -05:00
pub enum ProtocolTypes {
Byte,
}
2024-09-03 03:34:29 -05:00
pub struct Protocol {}
impl Protocol {
pub fn is_empty(&self) -> bool {
true
}
2024-08-30 12:31:45 -05:00
2024-09-03 03:34:29 -05:00
pub fn validate_data(&self, data: Vec<u8>) -> bool {
if !data.is_empty() && self.is_empty() {
return false;
}
true
}
2024-08-30 12:31:45 -05:00
}