Struct breez_sdk_liquid::lightning::offers::invoice_error::InvoiceError
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§
§impl InvoiceError
impl InvoiceError
pub fn from_string(s: String) -> InvoiceError
pub fn from_string(s: String) -> InvoiceError
Creates an InvoiceError
with the given message.
Trait Implementations§
§impl Clone for InvoiceError
impl Clone for InvoiceError
§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 more§impl Debug for InvoiceError
impl Debug for InvoiceError
§impl Display for InvoiceError
impl Display for InvoiceError
§impl From<Bolt12SemanticError> for InvoiceError
impl From<Bolt12SemanticError> for InvoiceError
§fn from(error: Bolt12SemanticError) -> InvoiceError
fn from(error: Bolt12SemanticError) -> InvoiceError
Converts to this type from the input type.
§impl Readable for InvoiceError
impl Readable for InvoiceError
§fn read<R>(reader: &mut R) -> Result<InvoiceError, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<InvoiceError, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request