pub struct CreateOfferRequest {
pub description: Option<String>,
pub min_amount: Option<Amount>,
pub expiration_secs: Option<u32>,
}Expand description
A request to create a BOLT 12 offer to receive Lightning payments.
Unlike invoices, offers are reusable: multiple payments can be made to it, including from multiple payers.
Fields§
§description: Option<String>An optional description to encode into the offer.
The sender will see this description when they scan the offer.
If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
min_amount: Option<Amount>An optional minimum payment size for payments to this offer. If not set, the payer can send any amount.
expiration_secs: Option<u32>An optional expiration for the offer, in seconds from now.
Trait Implementations§
Source§impl Default for CreateOfferRequest
impl Default for CreateOfferRequest
Source§fn default() -> CreateOfferRequest
fn default() -> CreateOfferRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateOfferRequest
impl<'de> Deserialize<'de> for CreateOfferRequest
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
Source§impl Serialize for CreateOfferRequest
impl Serialize for CreateOfferRequest
Auto Trait Implementations§
impl Freeze for CreateOfferRequest
impl RefUnwindSafe for CreateOfferRequest
impl Send for CreateOfferRequest
impl Sync for CreateOfferRequest
impl Unpin for CreateOfferRequest
impl UnwindSafe for CreateOfferRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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