pub struct CreatePayerProofRequest {
pub index: PaymentCreatedIndex,
pub disclosures: PayerProofDisclosures,
pub proof_note: Option<String>,
}Expand description
A request to prove that an offer was paid. Specifically, it proves that a BOLT 12 invoice was paid.
Fields§
§index: PaymentCreatedIndexThe index of the payment to create a proof for. Must be a completed outbound offer payment.
disclosures: PayerProofDisclosuresWhich of the paid invoice’s optional fields the proof discloses.
Defaults to disclosing
offer_description, invreq_payer_note, invoice_amount, and
invoice_created_at; use PayerProofDisclosures::EMPTY to disclose
nothing.
proof_note: Option<String>An optional note bound to the proof, readable by anyone the proof is shown to. If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreatePayerProofRequest
impl<'de> Deserialize<'de> for CreatePayerProofRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreatePayerProofRequest
impl Serialize for CreatePayerProofRequest
Auto Trait Implementations§
impl Freeze for CreatePayerProofRequest
impl RefUnwindSafe for CreatePayerProofRequest
impl Send for CreatePayerProofRequest
impl Sync for CreatePayerProofRequest
impl Unpin for CreatePayerProofRequest
impl UnwindSafe for CreatePayerProofRequest
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
Mutably borrows from an owned value. Read more