[−][src]Struct lightning_invoice::RawInvoice
Represents an syntactically correct Invoice for a payment on the lightning network, but without the signature information. De- and encoding should not lead to information loss but may lead to different hashes.
For methods without docs see the corresponding methods in Invoice
.
Fields
hrp: RawHrp
human readable part
data: RawDataPart
data part
Implementations
impl RawInvoice
[src]
pub fn hash(&self) -> [u8; 32]
[src]
Calculate the hash of the encoded RawInvoice
pub fn sign<F, E>(self, sign_method: F) -> Result<SignedRawInvoice, E> where
F: FnOnce(&Message) -> Result<RecoverableSignature, E>,
[src]
F: FnOnce(&Message) -> Result<RecoverableSignature, E>,
Signs the invoice using the supplied sign_function
. This function MAY fail with an error
of type E
. Since the signature of a SignedRawInvoice
is not required to be valid there
are no constraints regarding the validity of the produced signature.
pub fn known_tagged_fields(
&self
) -> FilterMap<Iter<'_, RawTaggedField>, fn(_: &RawTaggedField) -> Option<&TaggedField>>
[src]
&self
) -> FilterMap<Iter<'_, RawTaggedField>, fn(_: &RawTaggedField) -> Option<&TaggedField>>
Returns an iterator over all tagged fields with known semantics.
pub fn payment_hash(&self) -> Option<&Sha256>
[src]
pub fn description(&self) -> Option<&Description>
[src]
pub fn payee_pub_key(&self) -> Option<&PayeePubKey>
[src]
pub fn description_hash(&self) -> Option<&Sha256>
[src]
pub fn expiry_time(&self) -> Option<&ExpiryTime>
[src]
pub fn min_final_cltv_expiry(&self) -> Option<&MinFinalCltvExpiry>
[src]
pub fn fallbacks(&self) -> Vec<&Fallback>ⓘ
[src]
pub fn routes(&self) -> Vec<&Route>ⓘ
[src]
pub fn amount_pico_btc(&self) -> Option<u64>
[src]
pub fn currency(&self) -> Currency
[src]
Trait Implementations
impl Clone for RawInvoice
[src]
pub fn clone(&self) -> RawInvoice
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RawInvoice
[src]
impl Eq for RawInvoice
[src]
impl PartialEq<RawInvoice> for RawInvoice
[src]
pub fn eq(&self, other: &RawInvoice) -> bool
[src]
pub fn ne(&self, other: &RawInvoice) -> bool
[src]
impl StructuralEq for RawInvoice
[src]
impl StructuralPartialEq for RawInvoice
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawInvoice
[src]
impl Send for RawInvoice
[src]
impl Sync for RawInvoice
[src]
impl Unpin for RawInvoice
[src]
impl UnwindSafe for RawInvoice
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,