pub struct Field {
pub tag: u64,
pub type: Type,
}
Expand description
The Field
struct contains a tag and a type.
The tag is used to track the data type in the message for decoding.
The type is used to determine how to encode and decode the field.
Fields§
§tag: u64
The tag is used to track the data type in the message for decoding.
type: Type
The type is used to determine how to encode and decode the field.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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