pub struct MessageDef {
pub kind: PacketKind,
pub name: String,
pub fields: Vec<FieldDef>,
pub doc: Vec<String>,
pub attrs: Vec<Attribute>,
}Fields§
§kind: PacketKind§name: String§fields: Vec<FieldDef>§doc: Vec<String>§attrs: Vec<Attribute>Trait Implementations§
Source§impl Clone for MessageDef
impl Clone for MessageDef
Source§fn clone(&self) -> MessageDef
fn clone(&self) -> MessageDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageDef
impl Debug for MessageDef
Source§impl PartialEq for MessageDef
impl PartialEq for MessageDef
Source§fn eq(&self, other: &MessageDef) -> bool
fn eq(&self, other: &MessageDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageDef
Auto Trait Implementations§
impl Freeze for MessageDef
impl RefUnwindSafe for MessageDef
impl Send for MessageDef
impl Sync for MessageDef
impl Unpin for MessageDef
impl UnsafeUnpin for MessageDef
impl UnwindSafe for MessageDef
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