[][src]Struct lnrpc::Payment

pub struct Payment {
    pub payment_hash: String,
    pub value: i64,
    pub creation_date: i64,
    pub fee: i64,
    pub payment_preimage: String,
    pub value_sat: i64,
    pub value_msat: i64,
    pub payment_request: String,
    pub status: i32,
    pub fee_sat: i64,
    pub fee_msat: i64,
    pub creation_time_ns: i64,
    pub htlcs: Vec<HtlcAttempt>,
    pub payment_index: u64,
    pub failure_reason: i32,
}

Fields

payment_hash: Stringvalue: i64creation_date: i64fee: i64payment_preimage: Stringvalue_sat: i64value_msat: i64payment_request: Stringstatus: i32

The status of the payment.

fee_sat: i64fee_msat: i64creation_time_ns: i64htlcs: Vec<HtlcAttempt>payment_index: u64

The creation index of this payment. Each payment can be uniquely identified by this index, which may not strictly increment by 1 for payments made in older versions of lnd.

failure_reason: i32

Implementations

impl Payment[src]

pub fn status(&self) -> PaymentStatus[src]

Returns the enum value of status, or the default if the field is set to an invalid enum value.

pub fn set_status(&mut self, value: PaymentStatus)[src]

Sets status to the provided enum value.

pub fn failure_reason(&self) -> PaymentFailureReason[src]

Returns the enum value of failure_reason, or the default if the field is set to an invalid enum value.

pub fn set_failure_reason(&mut self, value: PaymentFailureReason)[src]

Sets failure_reason to the provided enum value.

Trait Implementations

impl Clone for Payment[src]

impl Debug for Payment[src]

impl Default for Payment[src]

impl Message for Payment[src]

impl PartialEq<Payment> for Payment[src]

impl StructuralPartialEq for Payment[src]

Auto Trait Implementations

impl RefUnwindSafe for Payment

impl Send for Payment

impl Sync for Payment

impl Unpin for Payment

impl UnwindSafe for Payment

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]