pub struct InvoiceError {
pub erroneous_field: Option<ErroneousField>,
pub message: UntrustedString,
}Expand description
An error in response to an InvoiceRequest or an Bolt12Invoice.
Fields§
§erroneous_field: Option<ErroneousField>The field in the InvoiceRequest or the Bolt12Invoice that contained an error.
message: UntrustedStringAn explanation of the error.
Implementations§
Source§impl InvoiceError
impl InvoiceError
Sourcepub fn from_string(s: String) -> Self
pub fn from_string(s: String) -> Self
Creates an InvoiceError with the given message.
Trait Implementations§
Source§impl Clone for InvoiceError
impl Clone for InvoiceError
Source§fn clone(&self) -> InvoiceError
fn clone(&self) -> InvoiceError
Returns a duplicate of the value. Read more
1.0.0 · 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 InvoiceError
impl Debug for InvoiceError
Source§impl Display for InvoiceError
impl Display for InvoiceError
Source§impl From<Bolt12SemanticError> for InvoiceError
impl From<Bolt12SemanticError> for InvoiceError
Source§fn from(error: Bolt12SemanticError) -> Self
fn from(error: Bolt12SemanticError) -> Self
Converts to this type from the input type.
Source§impl From<SignError> for InvoiceError
impl From<SignError> for InvoiceError
Source§impl Readable for InvoiceError
impl Readable for InvoiceError
Source§impl Writeable for InvoiceError
impl Writeable for InvoiceError
Auto Trait Implementations§
impl Freeze for InvoiceError
impl RefUnwindSafe for InvoiceError
impl Send for InvoiceError
impl Sync for InvoiceError
impl Unpin for InvoiceError
impl UnwindSafe for InvoiceError
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