pub enum Baid64ParseError {
InvalidHri(String, &'static str),
InvalidLen(String),
InvalidChecksum(String, u32, u32),
InvalidMnemonicLen(String),
InvalidMnemonic(Error),
Base64(DecodeError),
InvalidPayload(String),
}Variants§
InvalidHri(String, &'static str)
invalid human-readable prefix in {0} ({1} is expected).
InvalidLen(String)
invalid length of identifier {0}.
InvalidChecksum(String, u32, u32)
invalid checksum value in {0} - expected {1:#x} while found {2:#x}.
InvalidMnemonicLen(String)
invalid length of mnemonic in {0}.
InvalidMnemonic(Error)
Base64(DecodeError)
InvalidPayload(String)
invalid Baid64 payload - {0}
Trait Implementations§
Source§impl Debug for Baid64ParseError
impl Debug for Baid64ParseError
Source§impl Display for Baid64ParseError
impl Display for Baid64ParseError
Source§impl Error for Baid64ParseError
impl Error for Baid64ParseError
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<Baid64ParseError> for String
impl From<Baid64ParseError> for String
Source§fn from(err: Baid64ParseError) -> Self
fn from(err: Baid64ParseError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for Baid64ParseError
impl From<DecodeError> for Baid64ParseError
Source§fn from(v: DecodeError) -> Self
fn from(v: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Baid64ParseError
impl !RefUnwindSafe for Baid64ParseError
impl Send for Baid64ParseError
impl Sync for Baid64ParseError
impl Unpin for Baid64ParseError
impl !UnwindSafe for Baid64ParseError
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