pub struct NodeInfo {
pub node_name: String,
pub version: String,
pub addresses: Vec<String>,
pub features: Vec<String>,
pub pubkey: Pubkey,
pub timestamp: u64,
pub chain_hash: Hash256,
pub auto_accept_min_ckb_funding_amount: u64,
pub udt_cfg_infos: UdtCfgInfos,
}Expand description
The Node information.
Fields§
§node_name: StringThe name of the node.
version: StringThe version of the node.
addresses: Vec<String>The addresses of the node (serialized as strings).
features: Vec<String>The node features supported by the node.
pubkey: PubkeyThe identity public key of the node (secp256k1 compressed, hex string), same as pubkey in list_peers.
timestamp: u64The latest timestamp set by the owner for the node announcement. When a Node is online this timestamp will be updated to the latest value.
chain_hash: Hash256The chain hash of the node.
auto_accept_min_ckb_funding_amount: u64The minimum CKB funding amount for automatically accepting open channel requests.
udt_cfg_infos: UdtCfgInfosThe UDT configuration infos of the node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeInfo
impl<'de> Deserialize<'de> for NodeInfo
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 JsonSchema for NodeInfo
impl JsonSchema for NodeInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnsafeUnpin for NodeInfo
impl UnwindSafe for NodeInfo
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