pub struct AddTlc {
pub channel_id: Hash256,
pub tlc_id: u64,
pub amount: u128,
pub payment_hash: Hash256,
pub expiry: u64,
pub hash_algorithm: HashAlgorithm,
pub onion_packet: Option<PaymentOnionPacket>,
}Expand description
Message to add a TLC to the channel.
Fields§
§channel_id: Hash256§tlc_id: u64§amount: u128§payment_hash: Hash256§expiry: u64§hash_algorithm: HashAlgorithm§onion_packet: Option<PaymentOnionPacket>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddTlc
impl<'de> Deserialize<'de> for AddTlc
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
impl Eq for AddTlc
impl StructuralPartialEq for AddTlc
Auto Trait Implementations§
impl Freeze for AddTlc
impl RefUnwindSafe for AddTlc
impl Send for AddTlc
impl Sync for AddTlc
impl Unpin for AddTlc
impl UnsafeUnpin for AddTlc
impl UnwindSafe for AddTlc
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