pub enum ParseInvoiceError {
NoScheme,
Unrecognizable(Baid64ParseError),
Bp(ParseWitnessOutError),
}Variants§
NoScheme
RGB invoice misses URI scheme prefix contract:.
Unrecognizable(Baid64ParseError)
RGB invoice contains unrecognizable URI authority, which is neither contract id nor a contract query.
Bp(ParseWitnessOutError)
Available on crate features
bitcoin or liquid only.Trait Implementations§
Source§impl Debug for ParseInvoiceError
impl Debug for ParseInvoiceError
Source§impl Display for ParseInvoiceError
impl Display for ParseInvoiceError
Source§impl Error for ParseInvoiceError
impl Error for ParseInvoiceError
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<ParseInvoiceError> for String
impl From<ParseInvoiceError> for String
Source§fn from(err: ParseInvoiceError) -> Self
fn from(err: ParseInvoiceError) -> Self
Converts to this type from the input type.
Source§impl From<ParseWitnessOutError> for ParseInvoiceError
impl From<ParseWitnessOutError> for ParseInvoiceError
Source§fn from(v: ParseWitnessOutError) -> Self
fn from(v: ParseWitnessOutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseInvoiceError
impl !RefUnwindSafe for ParseInvoiceError
impl Send for ParseInvoiceError
impl Sync for ParseInvoiceError
impl Unpin for ParseInvoiceError
impl !UnwindSafe for ParseInvoiceError
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