pub enum ParseVersionedError {
NoVersion(String),
NoChecksum(String),
Id(Baid64ParseError),
Version(ParseIntError),
Checksum(Baid64ParseError),
}
Expand description
Errors happening during parsing of a versioned contract or codex ID.
Variants§
NoVersion(String)
the versioned id ‘{0}’ misses the version component, which should be provided after a /
sign.
NoChecksum(String)
the versioned id ‘{0}’ misses the API checksum component, which should be provided after a
#
sign.
Id(Baid64ParseError)
invalid versioned identifier; {0}
Version(ParseIntError)
invalid versioned number; {0}
Checksum(Baid64ParseError)
invalid API checksum value; {0}
Trait Implementations§
Source§impl Debug for ParseVersionedError
impl Debug for ParseVersionedError
Source§impl Display for ParseVersionedError
impl Display for ParseVersionedError
Source§impl Error for ParseVersionedError
impl Error for ParseVersionedError
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 From<ParseIntError> for ParseVersionedError
impl From<ParseIntError> for ParseVersionedError
Source§fn from(v: ParseIntError) -> Self
fn from(v: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ParseVersionedError> for String
impl From<ParseVersionedError> for String
Source§fn from(err: ParseVersionedError) -> Self
fn from(err: ParseVersionedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseVersionedError
impl !RefUnwindSafe for ParseVersionedError
impl Send for ParseVersionedError
impl Sync for ParseVersionedError
impl Unpin for ParseVersionedError
impl !UnwindSafe for ParseVersionedError
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