pub struct OpenChannelResponse {
pub channel_id: String,
pub transaction_receipt: String,
}Expand description
Response body for opening a channel.
JSON schema
{
"description": "Response body for opening a channel.",
"examples": [
{
"channelId": "0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f",
"transactionReceipt": "0x5181ac24759b8e01b3c932e4636c3852f386d17517a8dfc640a5ba6f2258f29c"
}
],
"type": "object",
"required": [
"channelId",
"transactionReceipt"
],
"properties": {
"channelId": {
"description": "ID of the new channel.",
"examples": [
"0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f"
],
"type": "string"
},
"transactionReceipt": {
"description": "Receipt of the channel open transaction.",
"examples": [
"0x5181ac24759b8e01b3c932e4636c3852f386d17517a8dfc640a5ba6f2258f29c"
],
"type": "string"
}
}
}Fields§
§channel_id: StringID of the new channel.
transaction_receipt: StringReceipt of the channel open transaction.
Trait Implementations§
Source§impl Clone for OpenChannelResponse
impl Clone for OpenChannelResponse
Source§fn clone(&self) -> OpenChannelResponse
fn clone(&self) -> OpenChannelResponse
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 OpenChannelResponse
impl Debug for OpenChannelResponse
Source§impl<'de> Deserialize<'de> for OpenChannelResponse
impl<'de> Deserialize<'de> for OpenChannelResponse
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 OpenChannelResponse
impl RefUnwindSafe for OpenChannelResponse
impl Send for OpenChannelResponse
impl Sync for OpenChannelResponse
impl Unpin for OpenChannelResponse
impl UnwindSafe for OpenChannelResponse
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