pub struct GetInfoResult {
pub alias: String,
pub color: String,
pub pubkey: String,
pub network: String,
pub block_height: u32,
pub block_hash: String,
pub methods: Vec<NwcMethod>,
}Expand description
Result for get_info command.
Fields§
§alias: StringLN node alias (e.g., “lexe-abc12345”).
color: StringRGB hex string (e.g., “000000”).
pubkey: StringLN node public key as hex string.
network: StringNetwork name: “mainnet”, “testnet”, “signet”, or “regtest”.
block_height: u32Current block height.
block_hash: StringHex-encoded block hash.
methods: Vec<NwcMethod>List of supported NWC methods for this connection.
Trait Implementations§
Source§impl Clone for GetInfoResult
impl Clone for GetInfoResult
Source§fn clone(&self) -> GetInfoResult
fn clone(&self) -> GetInfoResult
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 GetInfoResult
impl Debug for GetInfoResult
Source§impl<'de> Deserialize<'de> for GetInfoResult
impl<'de> Deserialize<'de> for GetInfoResult
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 GetInfoResult
impl PartialEq for GetInfoResult
Source§impl Serialize for GetInfoResult
impl Serialize for GetInfoResult
impl StructuralPartialEq for GetInfoResult
Auto Trait Implementations§
impl Freeze for GetInfoResult
impl RefUnwindSafe for GetInfoResult
impl Send for GetInfoResult
impl Sync for GetInfoResult
impl Unpin for GetInfoResult
impl UnsafeUnpin for GetInfoResult
impl UnwindSafe for GetInfoResult
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