pub struct PaymentOption {
pub type: String,
pub link: String,
}Expand description
A payment option of an invoice
Fields§
§type: StringName of the payment option
link: StringPayment link (url, ln invoice, etc.)
Trait Implementations§
Source§impl Clone for PaymentOption
impl Clone for PaymentOption
Source§fn clone(&self) -> PaymentOption
fn clone(&self) -> PaymentOption
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 PaymentOption
impl Debug for PaymentOption
Source§impl<'de> Deserialize<'de> for PaymentOption
impl<'de> Deserialize<'de> for PaymentOption
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 JsonUtil for PaymentOption
impl JsonUtil for PaymentOption
Source§fn as_pretty_json(&self) -> String
fn as_pretty_json(&self) -> String
Serialize as pretty JSON string Read more
Auto Trait Implementations§
impl Freeze for PaymentOption
impl RefUnwindSafe for PaymentOption
impl Send for PaymentOption
impl Sync for PaymentOption
impl Unpin for PaymentOption
impl UnwindSafe for PaymentOption
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