Struct agora_lnd_client::lnrpc::Payment[][src]

pub struct Payment {
Show 15 fields 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: String

The payment hash

value: i64
👎 Deprecated

Deprecated, use value_sat or value_msat.

creation_date: i64
👎 Deprecated

Deprecated, use creation_time_ns

fee: i64
👎 Deprecated

Deprecated, use fee_sat or fee_msat.

payment_preimage: String

The payment preimage

value_sat: i64

The value of the payment in satoshis

value_msat: i64

The value of the payment in milli-satoshis

payment_request: String

The optional payment request being fulfilled.

status: i32

The status of the payment.

fee_sat: i64

The fee paid for this payment in satoshis

fee_msat: i64

The fee paid for this payment in milli-satoshis

creation_time_ns: i64

The time in UNIX nanoseconds at which the payment was created.

htlcs: Vec<HtlcAttempt>

The HTLCs made in attempt to settle the payment.

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

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

Sets status to the provided enum value.

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

Sets failure_reason to the provided enum value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more