pub struct LimitsError {
pub field: &'static str,
pub value: String,
pub constraint: String,
}Expand description
Error returned when a Limits field violates its constraint.
Fields§
§field: &'static strThe field that failed validation.
value: StringThe rejected value.
constraint: StringHuman-readable constraint description.
Trait Implementations§
Source§impl Clone for LimitsError
impl Clone for LimitsError
Source§fn clone(&self) -> LimitsError
fn clone(&self) -> LimitsError
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 LimitsError
impl Debug for LimitsError
Source§impl Display for LimitsError
impl Display for LimitsError
impl Eq for LimitsError
Source§impl Error for LimitsError
impl Error for LimitsError
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()
Source§impl PartialEq for LimitsError
impl PartialEq for LimitsError
impl StructuralPartialEq for LimitsError
Auto Trait Implementations§
impl Freeze for LimitsError
impl RefUnwindSafe for LimitsError
impl Send for LimitsError
impl Sync for LimitsError
impl Unpin for LimitsError
impl UnsafeUnpin for LimitsError
impl UnwindSafe for LimitsError
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