pub struct FormatVersionError {
pub input: String,
pub reason: &'static str,
}Expand description
Error returned when a string does not match the FV<YYYY>-<MM>-<DD> pattern.
Fields§
§input: StringThe string that failed validation.
reason: &'static strHuman-readable explanation.
Trait Implementations§
Source§impl Clone for FormatVersionError
impl Clone for FormatVersionError
Source§fn clone(&self) -> FormatVersionError
fn clone(&self) -> FormatVersionError
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 FormatVersionError
impl Debug for FormatVersionError
Source§impl Display for FormatVersionError
impl Display for FormatVersionError
impl Eq for FormatVersionError
Source§impl Error for FormatVersionError
impl Error for FormatVersionError
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 FormatVersionError
impl PartialEq for FormatVersionError
Source§fn eq(&self, other: &FormatVersionError) -> bool
fn eq(&self, other: &FormatVersionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormatVersionError
Auto Trait Implementations§
impl Freeze for FormatVersionError
impl RefUnwindSafe for FormatVersionError
impl Send for FormatVersionError
impl Sync for FormatVersionError
impl Unpin for FormatVersionError
impl UnsafeUnpin for FormatVersionError
impl UnwindSafe for FormatVersionError
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