[][src]Struct clightningrpc::lightningrpc::PayOptions

pub struct PayOptions<'f> {
    pub msatoshi: Option<u64>,
    pub description: Option<&'f str>,
    pub riskfactor: Option<f64>,
    pub maxfeepercent: Option<f64>,
    pub exemptfee: Option<u64>,
    pub retry_for: Option<u64>,
    pub maxdelay: Option<u64>,
}

Optional arguments for pay() request

Fields

msatoshi: Option<u64>

{msatoshi} (if and only if {bolt11} does not have amount)

description: Option<&'f str>

{description} (required if {bolt11} uses description hash)

riskfactor: Option<f64>

{riskfactor} (default 1.0)

maxfeepercent: Option<f64>

{maxfeepercent} (default 0.5) the maximum acceptable fee as a percentage (e.g. 0.5 => 0.5%)

exemptfee: Option<u64>

{exemptfee} (default 5000 msat) disables the maxfeepercent check for fees below the threshold

retry_for: Option<u64>

{retry_for} (default 60) the integer number of seconds before we stop retrying

maxdelay: Option<u64>

{maxdelay} (default 500) the maximum number of blocks we allow the funds to possibly get locked

Trait Implementations

impl<'f> Clone for PayOptions<'f>[src]

impl<'f> Debug for PayOptions<'f>[src]

impl<'f> Default for PayOptions<'f>[src]

Auto Trait Implementations

impl<'f> RefUnwindSafe for PayOptions<'f>

impl<'f> Send for PayOptions<'f>

impl<'f> Sync for PayOptions<'f>

impl<'f> Unpin for PayOptions<'f>

impl<'f> UnwindSafe for PayOptions<'f>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.