pub struct ChannelSnapshot {
pub id: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub local_balance: Option<CurrencyAmount>,
pub local_unsettled_balance: Option<CurrencyAmount>,
pub remote_balance: Option<CurrencyAmount>,
pub remote_unsettled_balance: Option<CurrencyAmount>,
pub status: Option<String>,
pub channel: EntityWrapper,
pub local_channel_reserve: Option<CurrencyAmount>,
pub timestamp: DateTime<Utc>,
pub typename: String,
}Fields§
§id: StringThe unique identifier of this entity across all Lightspark systems. Should be treated as an opaque string.
created_at: DateTime<Utc>The date and time when the entity was first created.
updated_at: DateTime<Utc>The date and time when the entity was last updated.
local_balance: Option<CurrencyAmount>§local_unsettled_balance: Option<CurrencyAmount>§remote_balance: Option<CurrencyAmount>§remote_unsettled_balance: Option<CurrencyAmount>§status: Option<String>§channel: EntityWrapper§local_channel_reserve: Option<CurrencyAmount>§timestamp: DateTime<Utc>The timestamp that was used to query the snapshot of the channel
typename: StringThe typename of the object
Trait Implementations§
Source§impl Clone for ChannelSnapshot
impl Clone for ChannelSnapshot
Source§fn clone(&self) -> ChannelSnapshot
fn clone(&self) -> ChannelSnapshot
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 ChannelSnapshot
impl Debug for ChannelSnapshot
Source§impl<'de> Deserialize<'de> for ChannelSnapshot
impl<'de> Deserialize<'de> for ChannelSnapshot
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
Source§impl Entity for ChannelSnapshot
impl Entity for ChannelSnapshot
Source§fn get_id(&self) -> String
fn get_id(&self) -> String
The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque string.
Source§fn get_created_at(&self) -> DateTime<Utc>
fn get_created_at(&self) -> DateTime<Utc>
The date and time when the entity was first created.
Source§fn get_updated_at(&self) -> DateTime<Utc>
fn get_updated_at(&self) -> DateTime<Utc>
The date and time when the entity was last updated.
fn type_name(&self) -> &'static str
Source§impl GetEntity for ChannelSnapshot
impl GetEntity for ChannelSnapshot
fn get_entity_query() -> String
Auto Trait Implementations§
impl Freeze for ChannelSnapshot
impl RefUnwindSafe for ChannelSnapshot
impl Send for ChannelSnapshot
impl Sync for ChannelSnapshot
impl Unpin for ChannelSnapshot
impl UnwindSafe for ChannelSnapshot
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