pub struct RawInvoiceData(/* private fields */);Implementations§
Source§impl RawInvoiceData
impl RawInvoiceData
pub const FIELD_COUNT: usize = 3
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 timestamp(&self) -> Uint128
pub fn payment_hash(&self) -> PaymentHash
pub fn attrs(&self) -> InvoiceAttrsVec
pub fn as_reader<'r>(&'r self) -> RawInvoiceDataReader<'r>
Trait Implementations§
Source§impl Clone for RawInvoiceData
impl Clone for RawInvoiceData
Source§fn clone(&self) -> RawInvoiceData
fn clone(&self) -> RawInvoiceData
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 RawInvoiceData
impl Debug for RawInvoiceData
Source§impl Default for RawInvoiceData
impl Default for RawInvoiceData
Source§impl Display for RawInvoiceData
impl Display for RawInvoiceData
Source§impl Entity for RawInvoiceData
impl Entity for RawInvoiceData
const NAME: &'static str = "RawInvoiceData"
type Builder = RawInvoiceDataBuilder
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<InvoiceData> for RawInvoiceData
impl From<InvoiceData> for RawInvoiceData
Source§fn from(data: InvoiceData) -> Self
fn from(data: InvoiceData) -> Self
Converts to this type from the input type.
Source§impl LowerHex for RawInvoiceData
impl LowerHex for RawInvoiceData
Source§impl TryFrom<RawInvoiceData> for InvoiceData
impl TryFrom<RawInvoiceData> for InvoiceData
Source§type Error = VerificationError
type Error = VerificationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Freeze for RawInvoiceData
impl RefUnwindSafe for RawInvoiceData
impl Send for RawInvoiceData
impl Sync for RawInvoiceData
impl Unpin for RawInvoiceData
impl UnsafeUnpin for RawInvoiceData
impl UnwindSafe for RawInvoiceData
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