pub struct MessageDef {
pub name: SmolStr,
pub span: Span,
pub fields: Vec<FieldDef>,
pub tombstones: Vec<TombstoneDef>,
pub annotations: ResolvedAnnotations,
pub wire_size: Option<WireSize>,
}Expand description
A message type definition with ordered, typed fields.
Fields§
§name: SmolStr§span: Span§fields: Vec<FieldDef>§tombstones: Vec<TombstoneDef>§annotations: ResolvedAnnotations§wire_size: Option<WireSize>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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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