pub struct ChannelInfoResponse {
pub balance: String,
pub channel_epoch: i32,
pub channel_id: String,
pub closure_time: i64,
pub destination: String,
pub source: String,
pub status: String,
pub ticket_index: i64,
}Expand description
General information about a channel state.
JSON schema
{
"description": "General information about a channel state.",
"examples": [
{
"balance": "10 wxHOPR",
"channelEpoch": 1,
"channelId": "0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f",
"closureTime": 0,
"destination": "0x188c4462b75e46f0c7262d7f48d182447b93a93c",
"source": "0x07eaf07d6624f741e04f4092a755a9027aaab7f6",
"status": "Open",
"ticketIndex": 0
}
],
"type": "object",
"required": [
"balance",
"channelEpoch",
"channelId",
"closureTime",
"destination",
"source",
"status",
"ticketIndex"
],
"properties": {
"balance": {
"examples": [
"10 wxHOPR"
],
"type": "string"
},
"channelEpoch": {
"examples": [
1
],
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"channelId": {
"examples": [
"0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f"
],
"type": "string"
},
"closureTime": {
"examples": [
0
],
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"destination": {
"examples": [
"0x188c4462b75e46f0c7262d7f48d182447b93a93c"
],
"type": "string"
},
"source": {
"examples": [
"0x07eaf07d6624f741e04f4092a755a9027aaab7f6"
],
"type": "string"
},
"status": {
"examples": [
"Open"
],
"type": "string"
},
"ticketIndex": {
"examples": [
0
],
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
}Fields§
§balance: String§channel_epoch: i32§channel_id: String§closure_time: i64§destination: String§source: String§status: String§ticket_index: i64Trait Implementations§
Source§impl Clone for ChannelInfoResponse
impl Clone for ChannelInfoResponse
Source§fn clone(&self) -> ChannelInfoResponse
fn clone(&self) -> ChannelInfoResponse
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 ChannelInfoResponse
impl Debug for ChannelInfoResponse
Source§impl<'de> Deserialize<'de> for ChannelInfoResponse
impl<'de> Deserialize<'de> for ChannelInfoResponse
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 ChannelInfoResponse
impl RefUnwindSafe for ChannelInfoResponse
impl Send for ChannelInfoResponse
impl Sync for ChannelInfoResponse
impl Unpin for ChannelInfoResponse
impl UnwindSafe for ChannelInfoResponse
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