pub struct BasicPaymentV1 {Show 14 fields
pub index: PaymentCreatedIndex,
pub rail: PaymentRail,
pub direction: PaymentDirection,
pub invoice: Option<Arc<Invoice>>,
pub offer_id: Option<OfferId>,
pub offer: Option<Arc<Offer>>,
pub txid: Option<Txid>,
pub replacement: Option<Txid>,
pub amount: Option<Amount>,
pub fees: Amount,
pub status: PaymentStatus,
pub status_str: String,
pub note: Option<String>,
pub finalized_at: Option<TimestampMs>,
}Expand description
The old version of BasicPaymentV2; see BasicPaymentV2 for docs.
Fields§
§index: PaymentCreatedIndex§rail: PaymentRail§direction: PaymentDirection§invoice: Option<Arc<Invoice>>§offer_id: Option<OfferId>§offer: Option<Arc<Offer>>§txid: Option<Txid>§replacement: Option<Txid>§amount: Option<Amount>§fees: Amount§status: PaymentStatus§status_str: String§note: Option<String>§finalized_at: Option<TimestampMs>Implementations§
Source§impl BasicPaymentV1
impl BasicPaymentV1
pub fn index(&self) -> &PaymentCreatedIndex
pub fn created_at(&self) -> TimestampMs
pub fn payment_id(&self) -> PaymentId
pub fn is_pending(&self) -> bool
pub fn is_finalized(&self) -> bool
pub fn is_pending_not_junk(&self) -> bool
pub fn is_finalized_not_junk(&self) -> bool
pub fn is_junk(&self) -> bool
pub fn note_or_description(&self) -> Option<&str>
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns the invoice or offer description if present.
Trait Implementations§
Source§impl Clone for BasicPaymentV1
impl Clone for BasicPaymentV1
Source§fn clone(&self) -> BasicPaymentV1
fn clone(&self) -> BasicPaymentV1
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 BasicPaymentV1
impl Debug for BasicPaymentV1
Source§impl<'de> Deserialize<'de> for BasicPaymentV1
impl<'de> Deserialize<'de> for BasicPaymentV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BasicPaymentV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BasicPaymentV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BasicPaymentV2> for BasicPaymentV1
impl From<BasicPaymentV2> for BasicPaymentV1
Source§fn from(v2: BasicPaymentV2) -> BasicPaymentV1
fn from(v2: BasicPaymentV2) -> BasicPaymentV1
Converts to this type from the input type.
Source§impl PartialEq for BasicPaymentV1
impl PartialEq for BasicPaymentV1
Source§impl PartialOrd for BasicPaymentV1
impl PartialOrd for BasicPaymentV1
Source§impl Serialize for BasicPaymentV1
impl Serialize for BasicPaymentV1
Source§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,
Serialize this value into the given Serde serializer. Read more
impl Eq for BasicPaymentV1
impl StructuralPartialEq for BasicPaymentV1
Auto Trait Implementations§
impl Freeze for BasicPaymentV1
impl RefUnwindSafe for BasicPaymentV1
impl Send for BasicPaymentV1
impl Sync for BasicPaymentV1
impl Unpin for BasicPaymentV1
impl UnsafeUnpin for BasicPaymentV1
impl UnwindSafe for BasicPaymentV1
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
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
Compare self to
key and return true if they are equal.