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, use value_sat or value_msat.
creation_date: i64
Deprecated, use creation_time_ns
fee: i64
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 the encoded length of the message without a length delimiter.
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
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
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
Auto Trait Implementations
impl RefUnwindSafe for Payment
impl UnwindSafe for Payment
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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