pub struct InvalidParameterError {
pub parameter: Cow<'static, str>,
pub reason: Cow<'static, str>,
}Expand description
Invalid parameter error.
Fields§
§parameter: Cow<'static, str>Name of the parameter.
reason: Cow<'static, str>Why the parameter is invalid.
Implementations§
Trait Implementations§
Source§impl Debug for InvalidParameterError
impl Debug for InvalidParameterError
Source§impl Display for InvalidParameterError
impl Display for InvalidParameterError
Source§impl Error for InvalidParameterError
impl Error for InvalidParameterError
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 InvalidParameterError
impl RefUnwindSafe for InvalidParameterError
impl Send for InvalidParameterError
impl Sync for InvalidParameterError
impl Unpin for InvalidParameterError
impl UnsafeUnpin for InvalidParameterError
impl UnwindSafe for InvalidParameterError
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