pub struct LightningNode {
pub public_key: String,
pub alias: String,
pub channel_count: u64,
pub capacity: u64,
pub first_seen: u64,
pub updated_at: u64,
pub city: Option<LightningNodeCity>,
pub country: Option<LightningNodeCountry>,
}Expand description
Lightning node information.
Fields§
§public_key: StringNode public key
alias: StringNode alias
channel_count: u64Number of channels
capacity: u64Total capacity in satoshis
first_seen: u64First seen timestamp
updated_at: u64Last update timestamp
city: Option<LightningNodeCity>City location
country: Option<LightningNodeCountry>Country information
Implementations§
Source§impl LightningNode
impl LightningNode
Trait Implementations§
Source§impl Clone for LightningNode
impl Clone for LightningNode
Source§fn clone(&self) -> LightningNode
fn clone(&self) -> LightningNode
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 LightningNode
impl Debug for LightningNode
Source§impl<'de> Deserialize<'de> for LightningNode
impl<'de> Deserialize<'de> for LightningNode
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 PartialEq for LightningNode
impl PartialEq for LightningNode
Source§impl Serialize for LightningNode
impl Serialize for LightningNode
impl StructuralPartialEq for LightningNode
Auto Trait Implementations§
impl Freeze for LightningNode
impl RefUnwindSafe for LightningNode
impl Send for LightningNode
impl Sync for LightningNode
impl Unpin for LightningNode
impl UnwindSafe for LightningNode
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