Struct lightning::offers::invoice_error::InvoiceError
source · 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: UntrustedString
An 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 copy 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 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