pub struct Field {
pub path: Vec<u32>,
pub existence_only: bool,
}Expand description
A proto field path from the root message, represented as a sequence of field numbers.
For example, Field::new(vec![1, 2, 3]) selects field 3 within the
submessage at field 2 within the submessage at field 1.
Field::new(vec![1]) selects field 1 directly.
Fields§
§path: Vec<u32>Field numbers from root to this field.
existence_only: boolIf true, the field’s tag is preserved in the output but its value
is zeroed (existence-only mode).
Implementations§
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 UnsafeUnpin 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