pub struct PaymentHopData(/* private fields */);Implementations§
Source§impl PaymentHopData
impl PaymentHopData
pub const FIELD_COUNT: usize = 7
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn amount(&self) -> Uint128
pub fn expiry(&self) -> Uint64
pub fn payment_preimage(&self) -> PaymentPreimageOpt
pub fn hash_algorithm(&self) -> Byte
pub fn funding_tx_hash(&self) -> Byte32
pub fn next_hop(&self) -> PubkeyOpt
pub fn custom_records(&self) -> CustomRecordsOpt
pub fn as_reader<'r>(&'r self) -> PaymentHopDataReader<'r>
Trait Implementations§
Source§impl Clone for PaymentHopData
impl Clone for PaymentHopData
Source§fn clone(&self) -> PaymentHopData
fn clone(&self) -> PaymentHopData
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 PaymentHopData
impl Debug for PaymentHopData
Source§impl Default for PaymentHopData
impl Default for PaymentHopData
Source§impl Display for PaymentHopData
impl Display for PaymentHopData
Source§impl Entity for PaymentHopData
impl Entity for PaymentHopData
const NAME: &'static str = "PaymentHopData"
type Builder = PaymentHopDataBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<PaymentHopData> for PaymentHopData
impl From<PaymentHopData> for PaymentHopData
Source§fn from(payment_hop_data: PaymentHopData) -> Self
fn from(payment_hop_data: PaymentHopData) -> Self
Converts to this type from the input type.
Source§impl From<PaymentHopData> for PaymentHopData
impl From<PaymentHopData> for PaymentHopData
Source§fn from(payment_hop_data: PaymentHopData) -> Self
fn from(payment_hop_data: PaymentHopData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for PaymentHopData
impl RefUnwindSafe for PaymentHopData
impl Send for PaymentHopData
impl Sync for PaymentHopData
impl Unpin for PaymentHopData
impl UnsafeUnpin for PaymentHopData
impl UnwindSafe for PaymentHopData
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