pub struct NodeChannelsResponse {
pub all: Vec<ChannelInfoResponse>,
pub incoming: Vec<NodeChannel>,
pub outgoing: Vec<NodeChannel>,
}Expand description
Listing of channels.
JSON schema
{
"description": "Listing of channels.",
"examples": [
{
"all": [
{
"balance": "10 wxHOPR",
"channelEpoch": 1,
"channelId": "0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f",
"closureTime": 0,
"destination": "0x188c4462b75e46f0c7262d7f48d182447b93a93c",
"source": "0x07eaf07d6624f741e04f4092a755a9027aaab7f6",
"status": "Open",
"ticketIndex": 0
}
],
"incoming": [],
"outgoing": [
{
"balance": "10 wxHOPR",
"id": "0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f",
"peerAddress": "0x188c4462b75e46f0c7262d7f48d182447b93a93c",
"status": "Open"
}
]
}
],
"type": "object",
"required": [
"all",
"incoming",
"outgoing"
],
"properties": {
"all": {
"description": "Complete channel topology as seen by this node.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ChannelInfoResponse"
}
},
"incoming": {
"description": "Channels incoming to this node.",
"type": "array",
"items": {
"$ref": "#/components/schemas/NodeChannel"
}
},
"outgoing": {
"description": "Channels outgoing from this node.",
"type": "array",
"items": {
"$ref": "#/components/schemas/NodeChannel"
}
}
}
}Fields§
§all: Vec<ChannelInfoResponse>Complete channel topology as seen by this node.
incoming: Vec<NodeChannel>Channels incoming to this node.
outgoing: Vec<NodeChannel>Channels outgoing from this node.
Trait Implementations§
Source§impl Clone for NodeChannelsResponse
impl Clone for NodeChannelsResponse
Source§fn clone(&self) -> NodeChannelsResponse
fn clone(&self) -> NodeChannelsResponse
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 NodeChannelsResponse
impl Debug for NodeChannelsResponse
Source§impl<'de> Deserialize<'de> for NodeChannelsResponse
impl<'de> Deserialize<'de> for NodeChannelsResponse
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 NodeChannelsResponse
impl RefUnwindSafe for NodeChannelsResponse
impl Send for NodeChannelsResponse
impl Sync for NodeChannelsResponse
impl Unpin for NodeChannelsResponse
impl UnwindSafe for NodeChannelsResponse
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