pub struct NodeInfoResponse {
pub announced_address: Vec<String>,
pub channel_closure_period: i64,
pub connectivity_status: String,
pub hopr_network_name: String,
pub hopr_node_safe: String,
pub listening_address: Vec<String>,
pub provider_url: String,
}Expand description
Information about the current node. Covers network, addresses, eligibility, connectivity status, contracts addresses and indexer state.
JSON schema
{
"description": "Information about the current node. Covers network, addresses, eligibility, connectivity status, contracts addresses\nand indexer state.",
"examples": [
{
"announcedAddress": [
"/ip4/10.0.2.100/tcp/19092"
],
"channelClosurePeriod": 15,
"connectivityStatus": "Green",
"hoprNetworkName": "rotsee",
"hoprNodeSafe": "0x42bc901b1d040f984ed626eff550718498a6798a",
"listeningAddress": [
"/ip4/10.0.2.100/tcp/19092"
],
"providerUrl": "https://staging.blokli.hoprnet.link"
}
],
"type": "object",
"required": [
"announcedAddress",
"channelClosurePeriod",
"connectivityStatus",
"hoprNetworkName",
"hoprNodeSafe",
"listeningAddress",
"providerUrl"
],
"properties": {
"announcedAddress": {
"examples": [
[
"/ip4/10.0.2.100/tcp/19092"
]
],
"type": "array",
"items": {
"type": "string"
}
},
"channelClosurePeriod": {
"description": "Channel closure period in seconds",
"examples": [
15
],
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"connectivityStatus": {
"examples": [
"Green"
],
"type": "string"
},
"hoprNetworkName": {
"examples": [
"rotsee"
],
"type": "string"
},
"hoprNodeSafe": {
"examples": [
"0x42bc901b1d040f984ed626eff550718498a6798a"
],
"type": "string"
},
"listeningAddress": {
"examples": [
[
"/ip4/10.0.2.100/tcp/19092"
]
],
"type": "array",
"items": {
"type": "string"
}
},
"providerUrl": {
"examples": [
"https://staging.blokli.hoprnet.link"
],
"type": "string"
}
}
}Fields§
§announced_address: Vec<String>§channel_closure_period: i64Channel closure period in seconds
connectivity_status: String§hopr_network_name: String§hopr_node_safe: String§listening_address: Vec<String>§provider_url: StringTrait Implementations§
Source§impl Clone for NodeInfoResponse
impl Clone for NodeInfoResponse
Source§fn clone(&self) -> NodeInfoResponse
fn clone(&self) -> NodeInfoResponse
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 NodeInfoResponse
impl Debug for NodeInfoResponse
Source§impl<'de> Deserialize<'de> for NodeInfoResponse
impl<'de> Deserialize<'de> for NodeInfoResponse
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
Auto Trait Implementations§
impl Freeze for NodeInfoResponse
impl RefUnwindSafe for NodeInfoResponse
impl Send for NodeInfoResponse
impl Sync for NodeInfoResponse
impl Unpin for NodeInfoResponse
impl UnwindSafe for NodeInfoResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more