pub struct Bip21Options {
pub amount: Option<f64>,
pub label: Option<String>,
pub message: Option<String>,
}Expand description
Options for BIP21 URI generation.
Fields§
§amount: Option<f64>Amount in BTC
label: Option<String>Label for the address
message: Option<String>Message/memo
Implementations§
Source§impl Bip21Options
impl Bip21Options
Sourcepub fn with_amount(self, amount: f64) -> Self
pub fn with_amount(self, amount: f64) -> Self
Set amount.
Sourcepub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
Set label.
Sourcepub fn with_message(self, message: impl Into<String>) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
Set message.
Trait Implementations§
Source§impl Clone for Bip21Options
impl Clone for Bip21Options
Source§fn clone(&self) -> Bip21Options
fn clone(&self) -> Bip21Options
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 Bip21Options
impl Debug for Bip21Options
Source§impl Default for Bip21Options
impl Default for Bip21Options
Source§fn default() -> Bip21Options
fn default() -> Bip21Options
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Bip21Options
impl RefUnwindSafe for Bip21Options
impl Send for Bip21Options
impl Sync for Bip21Options
impl Unpin for Bip21Options
impl UnwindSafe for Bip21Options
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