pub enum ErrorParam {
String(String),
Int(i64),
Float(f64),
Bool(bool),
List(Vec<String>),
}Expand description
Parameter value for validation errors (supports multiple types)
Variants§
String(String)
String parameter
Int(i64)
Integer parameter
Float(f64)
Float parameter
Bool(bool)
Boolean parameter
List(Vec<String>)
List of values
Trait Implementations§
Source§impl Clone for ErrorParam
impl Clone for ErrorParam
Source§fn clone(&self) -> ErrorParam
fn clone(&self) -> ErrorParam
Returns a duplicate 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 ErrorParam
impl Debug for ErrorParam
Source§impl<'de> Deserialize<'de> for ErrorParam
impl<'de> Deserialize<'de> for ErrorParam
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for ErrorParam
impl From<&str> for ErrorParam
Source§fn from(s: &str) -> ErrorParam
fn from(s: &str) -> ErrorParam
Converts to this type from the input type.
Source§impl From<String> for ErrorParam
impl From<String> for ErrorParam
Source§fn from(s: String) -> ErrorParam
fn from(s: String) -> ErrorParam
Converts to this type from the input type.
Source§impl From<bool> for ErrorParam
impl From<bool> for ErrorParam
Source§fn from(b: bool) -> ErrorParam
fn from(b: bool) -> ErrorParam
Converts to this type from the input type.
Source§impl From<f64> for ErrorParam
impl From<f64> for ErrorParam
Source§fn from(n: f64) -> ErrorParam
fn from(n: f64) -> ErrorParam
Converts to this type from the input type.
Source§impl From<i32> for ErrorParam
impl From<i32> for ErrorParam
Source§fn from(n: i32) -> ErrorParam
fn from(n: i32) -> ErrorParam
Converts to this type from the input type.
Source§impl From<i64> for ErrorParam
impl From<i64> for ErrorParam
Source§fn from(n: i64) -> ErrorParam
fn from(n: i64) -> ErrorParam
Converts to this type from the input type.
Source§impl From<usize> for ErrorParam
impl From<usize> for ErrorParam
Source§fn from(n: usize) -> ErrorParam
fn from(n: usize) -> ErrorParam
Converts to this type from the input type.
Source§impl Serialize for ErrorParam
impl Serialize for ErrorParam
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorParam
impl RefUnwindSafe for ErrorParam
impl Send for ErrorParam
impl Sync for ErrorParam
impl Unpin for ErrorParam
impl UnwindSafe for ErrorParam
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