pub struct FieldError {
pub field: String,
pub key: Cow<'static, str>,
pub arguments: Vec<(Cow<'static, str>, String)>,
pub message: String,
}Fields§
§field: String§key: Cow<'static, str>§arguments: Vec<(Cow<'static, str>, String)>§message: StringImplementations§
Source§impl FieldError
impl FieldError
pub fn new( field: impl Into<String>, key: impl Into<Cow<'static, str>>, message: impl Into<String>, ) -> Self
pub fn required(field: impl Into<String>) -> Self
pub fn invalid(field: impl Into<String>, message: impl Into<String>) -> Self
pub fn with( self, name: impl Into<Cow<'static, str>>, value: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for FieldError
impl Clone for FieldError
Source§impl Debug for FieldError
impl Debug for FieldError
impl Eq for FieldError
Source§impl PartialEq for FieldError
impl PartialEq for FieldError
impl StructuralPartialEq for FieldError
Auto Trait Implementations§
impl Forget for FieldError
impl Freeze for FieldError
impl RefUnwindSafe for FieldError
impl Send for FieldError
impl Sync for FieldError
impl Unpin for FieldError
impl UnsafeUnpin for FieldError
impl UnwindSafe for FieldError
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