pub struct ClientPaymentState {
pub balance: u64,
pub signature: String,
pub payment_count: u64,
pub last_payment_at: u64,
}Expand description
Mutable payment state (updated on each payment)
This tracks the current state of payments made through the channel.
Fields§
§balance: u64Last signed balance (cumulative, monotonically increasing)
signature: StringLast signature corresponding to the balance
payment_count: u64Number of payments made through this channel
last_payment_at: u64Unix timestamp of the last payment
Trait Implementations§
Source§impl Clone for ClientPaymentState
impl Clone for ClientPaymentState
Source§fn clone(&self) -> ClientPaymentState
fn clone(&self) -> ClientPaymentState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientPaymentState
impl Debug for ClientPaymentState
Source§impl<'de> Deserialize<'de> for ClientPaymentState
impl<'de> Deserialize<'de> for ClientPaymentState
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
Auto Trait Implementations§
impl Freeze for ClientPaymentState
impl RefUnwindSafe for ClientPaymentState
impl Send for ClientPaymentState
impl Sync for ClientPaymentState
impl Unpin for ClientPaymentState
impl UnsafeUnpin for ClientPaymentState
impl UnwindSafe for ClientPaymentState
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