Struct PayerProofDisclosures
pub struct PayerProofDisclosures {
pub offer_description: bool,
pub offer_issuer: bool,
pub invreq_payer_note: bool,
pub invoice_amount: bool,
pub invoice_created_at: bool,
pub additional_disclosures: BTreeSet<u64>,
}Expand description
The BOLT12 invoice fields to include in the PayerProof.
Note that invreq_payer_id, invoice_payment_hash, invoice_node_id,
signature, and invoice_features (if it exists) are always included.
Fields§
§offer_description: boolThe offer’s advertised description.
TLV type: 10 (offer_description)
offer_issuer: boolThe payee’s self-reported human-readable name.
TLV type: 18 (offer_issuer)
invreq_payer_note: boolThe message the payer sent to the payee when paying the offer.
TLV type: 89 (invreq_payer_note)
invoice_amount: boolThe amount the payee’s invoice asked for.
TLV type: 170 (invoice_amount)
invoice_created_at: boolThe timestamp when the payee created the invoice. This is not the same
as a Lexe payment’s created_at.
TLV type: 164 (invoice_created_at)
additional_disclosures: BTreeSet<u64>Raw BOLT12 TLV types to disclose beyond the fields named above.
The request fails if a given TLV type cannot be disclosed.
Implementations§
§impl PayerProofDisclosures
impl PayerProofDisclosures
pub const EMPTY: PayerProofDisclosures
pub const EMPTY: PayerProofDisclosures
Discloses nothing beyond the fields a proof always carries.
Useful as a base to spread over: ..PayerProofDisclosures::EMPTY.
Trait Implementations§
§impl Clone for PayerProofDisclosures
impl Clone for PayerProofDisclosures
§fn clone(&self) -> PayerProofDisclosures
fn clone(&self) -> PayerProofDisclosures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PayerProofDisclosures
impl Debug for PayerProofDisclosures
§impl Default for PayerProofDisclosures
impl Default for PayerProofDisclosures
§fn default() -> PayerProofDisclosures
fn default() -> PayerProofDisclosures
Discloses offer_description, invreq_payer_note, invoice_amount,
and invoice_created_at by default.
§impl<'de> Deserialize<'de> for PayerProofDisclosureswhere
PayerProofDisclosures: Default,
impl<'de> Deserialize<'de> for PayerProofDisclosureswhere
PayerProofDisclosures: Default,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayerProofDisclosures, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayerProofDisclosures, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for PayerProofDisclosures
impl PartialEq for PayerProofDisclosures
§impl Serialize for PayerProofDisclosures
impl Serialize for PayerProofDisclosures
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PayerProofDisclosures
impl StructuralPartialEq for PayerProofDisclosures
Auto Trait Implementations§
impl Freeze for PayerProofDisclosures
impl RefUnwindSafe for PayerProofDisclosures
impl Send for PayerProofDisclosures
impl Sync for PayerProofDisclosures
impl Unpin for PayerProofDisclosures
impl UnwindSafe for PayerProofDisclosures
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.