pub struct Htlc {
pub id: u64,
pub amount: u128,
pub payment_hash: Hash256,
pub expiry: u64,
pub forwarding_channel_id: Option<Hash256>,
pub forwarding_tlc_id: Option<u64>,
pub status: TlcStatus,
}Expand description
The htlc data structure.
Fields§
§id: u64The id of the htlc
amount: u128The amount of the htlc
payment_hash: Hash256The payment hash of the htlc
expiry: u64The expiry of the htlc
forwarding_channel_id: Option<Hash256>If this HTLC is involved in a forwarding operation, this field indicates the forwarding channel. For an outbound htlc, it is the inbound channel. For an inbound htlc, it is the outbound channel.
forwarding_tlc_id: Option<u64>If this HTLC is involved in a forwarding operation, this field indicates the forwarding tlc id.
status: TlcStatusThe status of the htlc
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Htlc
impl<'de> Deserialize<'de> for Htlc
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
Source§impl JsonSchema for Htlc
impl JsonSchema for Htlc
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Htlc
impl RefUnwindSafe for Htlc
impl Send for Htlc
impl Sync for Htlc
impl Unpin for Htlc
impl UnsafeUnpin for Htlc
impl UnwindSafe for Htlc
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