pub struct Message<'a> {
pub fields: Vec<Field<'a>>,
pub garbage: Option<&'a [u8]>,
}
Expand description
Protocol buffer message.
Fields§
§fields: Vec<Field<'a>>
Decoded fields.
garbage: Option<&'a [u8]>
Garbage data at the end of the message.
As opposed to an UnknownValue::Invalid
, the garbage data did not have a valid field
number and for that reason cannot be placed into the fields
vector.
Trait Implementations§
impl<'a> Eq for Message<'a>
impl<'a> StructuralPartialEq for Message<'a>
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnwindSafe for Message<'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