pub struct SparkInvoiceDetails {
pub invoice: String,
pub identity_public_key: String,
pub network: BitcoinNetwork,
pub amount: Option<u128>,
pub token_identifier: Option<String>,
pub expiry_time: Option<u64>,
pub description: Option<String>,
pub sender_public_key: Option<String>,
}Fields§
§invoice: StringThe raw invoice string
identity_public_key: StringThe identity public key of the invoice issuer
network: BitcoinNetwork§amount: Option<u128>Optional amount denominated in sats if token_identifier is absent, otherwise in the token base units
token_identifier: Option<String>The token identifier of the token payment. Absence indicates a Bitcoin payment.
expiry_time: Option<u64>Optional expiry time. If not provided, the invoice will never expire.
description: Option<String>Optional description.
sender_public_key: Option<String>If set, the invoice may only be fulfilled by a payer with this public key.
Trait Implementations§
Source§impl Clone for SparkInvoiceDetails
impl Clone for SparkInvoiceDetails
Source§fn clone(&self) -> SparkInvoiceDetails
fn clone(&self) -> SparkInvoiceDetails
Returns a duplicate 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 SparkInvoiceDetails
impl Debug for SparkInvoiceDetails
Source§impl<'de> Deserialize<'de> for SparkInvoiceDetails
impl<'de> Deserialize<'de> for SparkInvoiceDetails
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 From<SparkInvoiceDetails> for SparkInvoiceDetails
impl From<SparkInvoiceDetails> for SparkInvoiceDetails
Source§impl PartialEq for SparkInvoiceDetails
impl PartialEq for SparkInvoiceDetails
Source§impl Serialize for SparkInvoiceDetails
impl Serialize for SparkInvoiceDetails
impl StructuralPartialEq for SparkInvoiceDetails
Auto Trait Implementations§
impl Freeze for SparkInvoiceDetails
impl RefUnwindSafe for SparkInvoiceDetails
impl Send for SparkInvoiceDetails
impl Sync for SparkInvoiceDetails
impl Unpin for SparkInvoiceDetails
impl UnwindSafe for SparkInvoiceDetails
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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