pub struct CurrentPaymentHopData {
pub amount: u128,
pub expiry: u64,
pub payment_preimage: Option<Hash256>,
pub hash_algorithm: HashAlgorithm,
pub funding_tx_hash: Hash256,
pub custom_records: Option<PaymentCustomRecords>,
}Expand description
The decrypted hop data for the current hop, without the next_hop field.
Fields§
§amount: u128§expiry: u64§payment_preimage: Option<Hash256>§hash_algorithm: HashAlgorithm§funding_tx_hash: Hash256§custom_records: Option<PaymentCustomRecords>Implementations§
Source§impl CurrentPaymentHopData
impl CurrentPaymentHopData
Sourcepub fn trampoline_onion(&self) -> Option<Vec<u8>>
pub fn trampoline_onion(&self) -> Option<Vec<u8>>
Returns the trampoline onion bytes embedded in custom_records, if present.
Sourcepub fn set_trampoline_onion(&mut self, data: Vec<u8>)
pub fn set_trampoline_onion(&mut self, data: Vec<u8>)
Embeds a trampoline onion packet into custom_records.
Trait Implementations§
Source§impl Clone for CurrentPaymentHopData
impl Clone for CurrentPaymentHopData
Source§fn clone(&self) -> CurrentPaymentHopData
fn clone(&self) -> CurrentPaymentHopData
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 CurrentPaymentHopData
impl Debug for CurrentPaymentHopData
Source§impl<'de> Deserialize<'de> for CurrentPaymentHopData
impl<'de> Deserialize<'de> for CurrentPaymentHopData
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 From<CurrentPaymentHopData> for PaymentHopData
impl From<CurrentPaymentHopData> for PaymentHopData
Source§fn from(hop: CurrentPaymentHopData) -> Self
fn from(hop: CurrentPaymentHopData) -> Self
Converts to this type from the input type.
Source§impl From<PaymentHopData> for CurrentPaymentHopData
impl From<PaymentHopData> for CurrentPaymentHopData
Source§fn from(hop: PaymentHopData) -> Self
fn from(hop: PaymentHopData) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CurrentPaymentHopData
impl PartialEq for CurrentPaymentHopData
Source§impl Serialize for CurrentPaymentHopData
impl Serialize for CurrentPaymentHopData
impl Eq for CurrentPaymentHopData
impl StructuralPartialEq for CurrentPaymentHopData
Auto Trait Implementations§
impl Freeze for CurrentPaymentHopData
impl RefUnwindSafe for CurrentPaymentHopData
impl Send for CurrentPaymentHopData
impl Sync for CurrentPaymentHopData
impl Unpin for CurrentPaymentHopData
impl UnsafeUnpin for CurrentPaymentHopData
impl UnwindSafe for CurrentPaymentHopData
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