pub struct Field<'a> {
pub field_number: u32,
pub wire_type: WireType,
pub raw: &'a [u8],
}Expand description
A single decoded protobuf field.
Fields§
§field_number: u32Field number (1-based, as in the .proto definition).
wire_type: WireTypeWire type of this field.
raw: &'a [u8]The raw bytes of this field’s value (slice into the original buffer).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnsafeUnpin for Field<'a>
impl<'a> UnwindSafe for Field<'a>
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