Struct tonic_types::FieldViolation
source · pub struct FieldViolation {
pub field: String,
pub description: String,
}
Expand description
Used at the field_violations
field of the BadRequest
struct.
Describes a single bad request field.
Fields§
§field: String
Path leading to a field in the request body. Value should be a sequence of dot-separated identifiers that identify a protocol buffer field.
description: String
Description 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 moresource§impl Debug for FieldViolation
impl Debug for FieldViolation
source§impl From<FieldViolation> for FieldViolation
impl From<FieldViolation> for FieldViolation
source§fn from(value: FieldViolation) -> Self
fn from(value: FieldViolation) -> Self
Converts to this type from the input type.
source§impl From<FieldViolation> for FieldViolation
impl From<FieldViolation> for FieldViolation
source§fn from(value: FieldViolation) -> Self
fn from(value: FieldViolation) -> Self
Converts to this type from the input type.
Auto 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> 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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