pub struct PayableDetails {
pub payable: String,
pub method: PaymentMethod,
pub description: Option<String>,
pub amount: Option<Amount>,
pub min_amount: Option<Amount>,
pub max_amount: Option<Amount>,
pub expires_at: Option<TimestampMs>,
}Expand description
Describes basic information for a payable string.
Fields§
§payable: StringThe payable string encoding the payment method.
method: PaymentMethodThe deserialized payment method.
description: Option<String>The description encoded in the payable, if any.
amount: Option<Amount>The amount that should be paid to the payable; if None, the payer
should specify an amount to pay.
This will be None if min_amount or max_amount are specified.
min_amount: Option<Amount>The minimum amount that can be paid to the payable.
This will be None if amount is specified.
max_amount: Option<Amount>The maximum amount that can be paid to the payable.
This will be None if amount is specified.
expires_at: Option<TimestampMs>The payable expiration time, in milliseconds since the UNIX epoch.
Auto Trait Implementations§
impl Freeze for PayableDetails
impl RefUnwindSafe for PayableDetails
impl Send for PayableDetails
impl Sync for PayableDetails
impl Unpin for PayableDetails
impl UnwindSafe for PayableDetails
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