pub struct ProtoTextField {Show 14 fields
pub annotations: Vec<String>,
pub field_number: Option<u64>,
pub content: ProtoTextContent,
pub tag_overhang_count: Option<u64>,
pub tag_is_out_of_range: bool,
pub value_overhang_count: Option<u64>,
pub length_overhang_count: Option<u64>,
pub missing_bytes_count: Option<u64>,
pub mismatched_group_end: Option<u64>,
pub open_ended_group: bool,
pub end_tag_overhang_count: Option<u64>,
pub end_tag_is_out_of_range: bool,
pub proto2_has_type_mismatch: bool,
pub records_overhung_count: Vec<u64>,
}Expand description
Lossless representation of one protobuf field.
Corresponds to prototext.proto / Field.
Fields§
§annotations: Vec<String>Annotation strings (proto field 1, repeated string o).
field_number: Option<u64>Field number from the wire (proto field 2, optional uint64 n).
content: ProtoTextContent§tag_overhang_count: Option<u64>§tag_is_out_of_range: bool§value_overhang_count: Option<u64>§length_overhang_count: Option<u64>§missing_bytes_count: Option<u64>§mismatched_group_end: Option<u64>§open_ended_group: bool§end_tag_overhang_count: Option<u64>§end_tag_is_out_of_range: bool§proto2_has_type_mismatch: bool§records_overhung_count: Vec<u64>Trait Implementations§
Source§impl Clone for ProtoTextField
impl Clone for ProtoTextField
Source§fn clone(&self) -> ProtoTextField
fn clone(&self) -> ProtoTextField
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 moreSource§impl Debug for ProtoTextField
impl Debug for ProtoTextField
Source§impl Default for ProtoTextField
impl Default for ProtoTextField
Source§fn default() -> ProtoTextField
fn default() -> ProtoTextField
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProtoTextField
impl RefUnwindSafe for ProtoTextField
impl Send for ProtoTextField
impl Sync for ProtoTextField
impl Unpin for ProtoTextField
impl UnsafeUnpin for ProtoTextField
impl UnwindSafe for ProtoTextField
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