pub struct Bip321UriRequest {
pub amount_sat: Option<u64>,
pub onchain: Option<bool>,
pub label: Option<String>,
pub message: Option<String>,
}Expand description
Request to build a BIP 321 unified payment URI.
An Ark address is always included. A BOLT11 invoice is only included when
amount_sat is given (an amount is required to create one). An on-chain
address is included only when onchain is true.
Fields§
§amount_sat: Option<u64>Optional amount (in satoshis) to request. When set, it is embedded in the URI and used to create the BOLT11 invoice. Any server-configured LightningReceiveFees are deducted from the amount the client ultimately receives over Lightning.
onchain: Option<bool>Whether to include a fresh on-chain address as a payment destination.
Defaults to false.
label: Option<String>Optional label describing the payment, recorded in the URI’s label.
message: Option<String>Optional message describing the payment, recorded in the URI’s message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bip321UriRequest
impl<'de> Deserialize<'de> for Bip321UriRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Bip321UriRequest
impl RefUnwindSafe for Bip321UriRequest
impl Send for Bip321UriRequest
impl Sync for Bip321UriRequest
impl Unpin for Bip321UriRequest
impl UnsafeUnpin for Bip321UriRequest
impl UnwindSafe for Bip321UriRequest
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request