pub struct OnchainPaymentInfo {
pub state: PaymentState,
pub expires_at: DateTime<Utc>,
pub fee_total_sat: u64,
pub order_total_sat: u64,
pub address: Address,
pub min_onchain_payment_confirmations: Option<u16>,
pub min_fee_for_0conf: FeeRate,
pub refund_onchain_address: Option<Address>,
}
Expand description
An onchain payment.
Fields§
§state: PaymentState
Indicates the current state of the payment.
expires_at: DateTime<Utc>
The datetime when the payment option expires.
fee_total_sat: u64
The total fee the LSP will charge to open this channel in satoshi.
order_total_sat: u64
The amount the client needs to pay to have the requested channel openend.
address: Address
An on-chain address the client can send Self::order_total_sat
to to have the channel
opened.
min_onchain_payment_confirmations: Option<u16>
The minimum number of block confirmations that are required for the on-chain payment to be considered confirmed.
min_fee_for_0conf: FeeRate
The minimum fee rate for the on-chain payment in case the client wants the payment to be confirmed without a confirmation.
refund_onchain_address: Option<Address>
The address where the LSP will send the funds if the order fails.
Trait Implementations§
Source§impl Clone for OnchainPaymentInfo
impl Clone for OnchainPaymentInfo
Source§fn clone(&self) -> OnchainPaymentInfo
fn clone(&self) -> OnchainPaymentInfo
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 OnchainPaymentInfo
impl Debug for OnchainPaymentInfo
Source§impl<'de> Deserialize<'de> for OnchainPaymentInfo
impl<'de> Deserialize<'de> for OnchainPaymentInfo
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 PartialEq for OnchainPaymentInfo
impl PartialEq for OnchainPaymentInfo
Source§impl Serialize for OnchainPaymentInfo
impl Serialize for OnchainPaymentInfo
impl Eq for OnchainPaymentInfo
impl StructuralPartialEq for OnchainPaymentInfo
Auto Trait Implementations§
impl Freeze for OnchainPaymentInfo
impl RefUnwindSafe for OnchainPaymentInfo
impl Send for OnchainPaymentInfo
impl Sync for OnchainPaymentInfo
impl Unpin for OnchainPaymentInfo
impl UnwindSafe for OnchainPaymentInfo
Blanket Implementations§
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