pub struct WireValidationError {
pub field: &'static str,
pub message: String,
}Expand description
Error returned when a wire payload field exceeds its size limit.
Fields§
§field: &'static strThe field path that failed validation (e.g. "hosts", "results[0].error").
message: StringHuman-readable description of the violation.
Trait Implementations§
Source§impl Clone for WireValidationError
impl Clone for WireValidationError
Source§fn clone(&self) -> WireValidationError
fn clone(&self) -> WireValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WireValidationError
impl Debug for WireValidationError
Source§impl Display for WireValidationError
impl Display for WireValidationError
Source§impl Error for WireValidationError
impl Error for WireValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for WireValidationError
impl RefUnwindSafe for WireValidationError
impl Send for WireValidationError
impl Sync for WireValidationError
impl Unpin for WireValidationError
impl UnsafeUnpin for WireValidationError
impl UnwindSafe for WireValidationError
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