Struct lightning::ln::msgs::UnsignedNodeAnnouncement
source · pub struct UnsignedNodeAnnouncement {
pub features: NodeFeatures,
pub timestamp: u32,
pub node_id: NodeId,
pub rgb: [u8; 3],
pub alias: [u8; 32],
pub addresses: Vec<NetAddress>,
/* private fields */
}
Expand description
The unsigned part of a node_announcement
message.
Fields§
§features: NodeFeatures
The advertised features
timestamp: u32
A strictly monotonic announcement counter, with gaps allowed
node_id: NodeId
The node_id
this announcement originated from (don’t rebroadcast the node_announcement
back
to this node).
rgb: [u8; 3]
An RGB color for UI purposes
alias: [u8; 32]
An alias, for UI purposes.
This should be sanitized before use. There is no guarantee of uniqueness.
addresses: Vec<NetAddress>
List of addresses on which this node is reachable
Trait Implementations§
source§impl Clone for UnsignedNodeAnnouncement
impl Clone for UnsignedNodeAnnouncement
source§fn clone(&self) -> UnsignedNodeAnnouncement
fn clone(&self) -> UnsignedNodeAnnouncement
Returns a copy 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 UnsignedNodeAnnouncement
impl Debug for UnsignedNodeAnnouncement
source§impl PartialEq<UnsignedNodeAnnouncement> for UnsignedNodeAnnouncement
impl PartialEq<UnsignedNodeAnnouncement> for UnsignedNodeAnnouncement
source§fn eq(&self, other: &UnsignedNodeAnnouncement) -> bool
fn eq(&self, other: &UnsignedNodeAnnouncement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.