pub struct ChannelTicket {
pub amount: String,
pub channel_epoch: i32,
pub channel_id: String,
pub index: i64,
pub signature: String,
pub win_prob: String,
}Expand description
Represents a ticket in a channel.
JSON schema
{
"description": "Represents a ticket in a channel.",
"examples": [
{
"amount": "100",
"channelEpoch": 1,
"channelId": "0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f",
"index": 0,
"indexOffset": 1,
"signature": "0xe445fcf4e90d25fe3c9199ccfaff85e23ecce8773304d85e7120f1f38787f2329822470487a37f1b5408c8c0b73e874ee9f7594a632713b6096e616857999891",
"winProb": "1"
}
],
"type": "object",
"required": [
"amount",
"channelEpoch",
"channelId",
"index",
"signature",
"winProb"
],
"properties": {
"amount": {
"examples": [
"1.0 wxHOPR"
],
"type": "string"
},
"channelEpoch": {
"examples": [
1
],
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"channelId": {
"examples": [
"0x04efc1481d3f106b88527b3844ba40042b823218a9cd29d1aa11c2c2ef8f538f"
],
"type": "string"
},
"index": {
"examples": [
0
],
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"signature": {
"examples": [
"0xe445fcf4e90d25fe3c9199ccfaff85e23ecce8773304d85e7120f1f38787f2329822470487a37f1b5408c8c0b73e874ee9f7594a632713b6096e616857999891"
],
"type": "string"
},
"winProb": {
"examples": [
"1"
],
"type": "string"
}
}
}Fields§
§amount: String§channel_epoch: i32§channel_id: String§index: i64§signature: String§win_prob: StringTrait Implementations§
Source§impl Clone for ChannelTicket
impl Clone for ChannelTicket
Source§fn clone(&self) -> ChannelTicket
fn clone(&self) -> ChannelTicket
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 ChannelTicket
impl Debug for ChannelTicket
Source§impl<'de> Deserialize<'de> for ChannelTicket
impl<'de> Deserialize<'de> for ChannelTicket
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 ChannelTicket
impl RefUnwindSafe for ChannelTicket
impl Send for ChannelTicket
impl Sync for ChannelTicket
impl Unpin for ChannelTicket
impl UnwindSafe for ChannelTicket
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