pub struct LnUrlPayState<O, B> { /* private fields */ }Implementations§
Source§impl<O, B> LnUrlPayState<O, B>
impl<O, B> LnUrlPayState<O, B>
pub fn new( partitions: HashSet<String>, offer_provider: O, balancer: B, invoice_expiry: u64, scheme: Scheme, allowed_hosts: HashSet<String>, comment_allowed: Option<u32>, bech32_qr_scale: usize, bech32_qr_light: u8, bech32_qr_dark: u8, ) -> Self
pub fn offer_provider(&self) -> &O
pub fn balancer(&self) -> &B
pub fn invoice_expiry(&self) -> u64
pub fn partitions(&self) -> &HashSet<String>
pub fn comment_allowed(&self) -> Option<u32>
pub fn bech32_qr_scale(&self) -> usize
pub fn bech32_qr_light(&self) -> u8
pub fn bech32_qr_dark(&self) -> u8
Trait Implementations§
Source§impl<O: Clone, B: Clone> Clone for LnUrlPayState<O, B>
impl<O: Clone, B: Clone> Clone for LnUrlPayState<O, B>
Source§fn clone(&self) -> LnUrlPayState<O, B>
fn clone(&self) -> LnUrlPayState<O, B>
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<O, B> FromRef<LnUrlPayState<O, B>> for Scheme
impl<O, B> FromRef<LnUrlPayState<O, B>> for Scheme
Source§fn from_ref(input: &LnUrlPayState<O, B>) -> Self
fn from_ref(input: &LnUrlPayState<O, B>) -> Self
Converts to this type from a reference to the input type.
Auto Trait Implementations§
impl<O, B> Freeze for LnUrlPayState<O, B>
impl<O, B> RefUnwindSafe for LnUrlPayState<O, B>where
O: RefUnwindSafe,
B: RefUnwindSafe,
impl<O, B> Send for LnUrlPayState<O, B>
impl<O, B> Sync for LnUrlPayState<O, B>
impl<O, B> Unpin for LnUrlPayState<O, B>
impl<O, B> UnwindSafe for LnUrlPayState<O, B>where
O: UnwindSafe,
B: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more