forked from AbleOS/ableos
23 lines
329 B
Rust
23 lines
329 B
Rust
pub enum ProtocolTypes {
|
|
Byte,
|
|
}
|
|
|
|
pub struct Decorator {
|
|
pub name: String,
|
|
pub value: Option<String>,
|
|
}
|
|
|
|
pub struct Protocol {
|
|
pub name: String,
|
|
pub decorators: Vec<Decorator>,
|
|
}
|
|
|
|
pub struct Field {
|
|
pub name: String,
|
|
pub ptype: ProtocolTypes,
|
|
}
|
|
|
|
pub struct Structure {
|
|
pub fields: Vec<Field>,
|
|
}
|