pub struct Packet {
pub title: Option<String>,
pub fields: Vec<PacketField>,
}Expand description
A parsed packet-beta diagram.
Constructed by crate::parser::packet::parse and consumed by
crate::render::packet::render.
Fields§
§title: Option<String>An optional title displayed above the diagram.
fields: Vec<PacketField>Ordered list of fields in the diagram (declaration order).
Implementations§
Trait Implementations§
impl Eq for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnsafeUnpin for Packet
impl UnwindSafe for Packet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more