pub struct CapabilityQuery {
pub node_id: NodeId,
pub public_key: String,
pub stop_public_key: Option<String>,
pub capabilities: Vec<String>,
pub listen_addresses: Vec<String>,
pub requested_at: OffsetDateTime,
}Expand description
A query announcing a node’s identity and requesting peer capabilities.
Fields§
§node_id: NodeIdThe querying node’s identifier.
public_key: StringBase64-encoded public key for message verification.
stop_public_key: Option<String>Optional separate public key for stop order verification.
capabilities: Vec<String>Capabilities this node offers.
listen_addresses: Vec<String>Network addresses where this node can be reached.
requested_at: OffsetDateTimeWhen this query was created.
Trait Implementations§
Source§impl Clone for CapabilityQuery
impl Clone for CapabilityQuery
Source§fn clone(&self) -> CapabilityQuery
fn clone(&self) -> CapabilityQuery
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 CapabilityQuery
impl Debug for CapabilityQuery
Source§impl<'de> Deserialize<'de> for CapabilityQuery
impl<'de> Deserialize<'de> for CapabilityQuery
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 RoutedBody for CapabilityQuery
impl RoutedBody for CapabilityQuery
Auto Trait Implementations§
impl Freeze for CapabilityQuery
impl RefUnwindSafe for CapabilityQuery
impl Send for CapabilityQuery
impl Sync for CapabilityQuery
impl Unpin for CapabilityQuery
impl UnsafeUnpin for CapabilityQuery
impl UnwindSafe for CapabilityQuery
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