Enum OffersContext
pub enum OffersContext {
InvoiceRequest {
nonce: Nonce,
},
OutboundPayment {
payment_id: PaymentId,
nonce: Nonce,
hmac: Option<Hmac<Hash>>,
},
InboundPayment {
payment_hash: PaymentHash,
},
}
Expand description
Contains data specific to an OffersMessage
.
Variants§
InvoiceRequest
Context used by a BlindedMessagePath
within an Offer
.
This variant is intended to be received when handling an InvoiceRequest
.
Fields
nonce: Nonce
A nonce used for authenticating that an InvoiceRequest
is for a valid Offer
and
for deriving the offer’s signing keys.
OutboundPayment
Context used by a BlindedMessagePath
within a Refund
or as a reply path for an
InvoiceRequest
.
This variant is intended to be received when handling a Bolt12Invoice
or an
InvoiceError
.
Fields
payment_id: PaymentId
Payment ID used when creating a Refund
or InvoiceRequest
.
nonce: Nonce
A nonce used for authenticating that a Bolt12Invoice
is for a valid Refund
or
InvoiceRequest
and for deriving their signing keys.
InboundPayment
Context used by a BlindedMessagePath
as a reply path for a Bolt12Invoice
.
This variant is intended to be received when handling an InvoiceError
.
Fields
payment_hash: PaymentHash
The same payment hash as Bolt12Invoice::payment_hash
.
Trait Implementations§
§impl Clone for OffersContext
impl Clone for OffersContext
§fn clone(&self) -> OffersContext
fn clone(&self) -> OffersContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for OffersContext
impl Debug for OffersContext
§impl PartialEq for OffersContext
impl PartialEq for OffersContext
§impl Readable for OffersContext
impl Readable for OffersContext
§fn read<R>(reader: &mut R) -> Result<OffersContext, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<OffersContext, DecodeError>where
R: Read,
Self
in from the given Read
.§impl Writeable for OffersContext
impl Writeable for OffersContext
impl Eq for OffersContext
impl StructuralPartialEq for OffersContext
Auto Trait Implementations§
impl Freeze for OffersContext
impl RefUnwindSafe for OffersContext
impl Send for OffersContext
impl Sync for OffersContext
impl Unpin for OffersContext
impl UnwindSafe for OffersContext
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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>
T
in a tonic::Request
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>
T
in a tonic::Request