Struct tonic_types::FieldViolation
source · Expand description
Used at the field_violations field of the BadRequest struct.
Describes a single bad request field.
Fields§
§field: StringPath leading to a field in the request body. Value should be a sequence of dot-separated identifiers that identify a protocol buffer field.
description: StringDescription of why the field is bad.
Implementations§
Trait Implementations§
source§impl Clone for FieldViolation
impl Clone for FieldViolation
source§fn clone(&self) -> FieldViolation
fn clone(&self) -> FieldViolation
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for FieldViolation
impl Send for FieldViolation
impl Sync for FieldViolation
impl Unpin for FieldViolation
impl UnwindSafe for FieldViolation
Blanket Implementations§
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