pub struct ProtoField {
pub field_number: u32,
pub wire_type: WireType,
pub value: ProtoValue,
}Expand description
A single decoded protobuf field.
Fields§
§field_number: u32The field number from the protobuf tag.
wire_type: WireTypeThe wire type of this field.
value: ProtoValueThe decoded value.
Trait Implementations§
Source§impl Clone for ProtoField
impl Clone for ProtoField
Source§fn clone(&self) -> ProtoField
fn clone(&self) -> ProtoField
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 ProtoField
impl Debug for ProtoField
Source§impl Display for ProtoField
impl Display for ProtoField
Source§impl PartialEq for ProtoField
impl PartialEq for ProtoField
impl StructuralPartialEq for ProtoField
Auto Trait Implementations§
impl Freeze for ProtoField
impl RefUnwindSafe for ProtoField
impl Send for ProtoField
impl Sync for ProtoField
impl Unpin for ProtoField
impl UnsafeUnpin for ProtoField
impl UnwindSafe for ProtoField
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request