Struct lightning_invoice::RawDataPart
source · pub struct RawDataPart {
pub timestamp: PositiveTimestamp,
pub tagged_fields: Vec<RawTaggedField>,
}
Expand description
Data of the RawBolt11Invoice
that is encoded in the data part
Fields§
§timestamp: PositiveTimestamp
generation time of the invoice
tagged_fields: Vec<RawTaggedField>
tagged fields of the payment request
Trait Implementations§
source§impl Clone for RawDataPart
impl Clone for RawDataPart
source§fn clone(&self) -> RawDataPart
fn clone(&self) -> RawDataPart
Returns a copy 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 RawDataPart
impl Debug for RawDataPart
source§impl FromBase32 for RawDataPart
impl FromBase32 for RawDataPart
§type Err = Bolt11ParseError
type Err = Bolt11ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
source§impl Hash for RawDataPart
impl Hash for RawDataPart
source§impl Ord for RawDataPart
impl Ord for RawDataPart
source§fn cmp(&self, other: &RawDataPart) -> Ordering
fn cmp(&self, other: &RawDataPart) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RawDataPart
impl PartialEq for RawDataPart
source§fn eq(&self, other: &RawDataPart) -> bool
fn eq(&self, other: &RawDataPart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RawDataPart
impl PartialOrd for RawDataPart
source§fn partial_cmp(&self, other: &RawDataPart) -> Option<Ordering>
fn partial_cmp(&self, other: &RawDataPart) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToBase32 for RawDataPart
impl ToBase32 for RawDataPart
source§fn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
fn write_base32<W: WriteBase32>( &self, writer: &mut W ) -> Result<(), <W as WriteBase32>::Err>
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.
impl Eq for RawDataPart
impl StructuralEq for RawDataPart
impl StructuralPartialEq for RawDataPart
Auto Trait Implementations§
impl RefUnwindSafe for RawDataPart
impl Send for RawDataPart
impl Sync for RawDataPart
impl Unpin for RawDataPart
impl UnwindSafe for RawDataPart
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