pub struct SendRequest {Show 15 fields
pub dest: Vec<u8>,
pub dest_string: String,
pub amt: i64,
pub amt_msat: i64,
pub payment_hash: Vec<u8>,
pub payment_hash_string: String,
pub payment_request: String,
pub final_cltv_delta: i32,
pub fee_limit: Option<FeeLimit>,
pub outgoing_chan_id: u64,
pub last_hop_pubkey: Vec<u8>,
pub cltv_limit: u32,
pub dest_custom_records: HashMap<u64, Vec<u8>>,
pub allow_self_payment: bool,
pub dest_features: Vec<i32>,
}
Fields§
§dest: Vec<u8>
The identity pubkey of the payment recipient. When using REST, this field must be encoded as base64.
dest_string: String
The hex-encoded identity pubkey of the payment recipient. Deprecated now that the REST gateway supports base64 encoding of bytes fields.
amt: i64
The amount to send expressed in satoshis.
The fields amt and amt_msat are mutually exclusive.
amt_msat: i64
The amount to send expressed in millisatoshis.
The fields amt and amt_msat are mutually exclusive.
payment_hash: Vec<u8>
The hash to use within the payment’s HTLC. When using REST, this field must be encoded as base64.
payment_hash_string: String
The hex-encoded hash to use within the payment’s HTLC. Deprecated now that the REST gateway supports base64 encoding of bytes fields.
payment_request: String
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient.
final_cltv_delta: i32
The CLTV delta from the current height that should be used to set the timelock for the final hop.
fee_limit: Option<FeeLimit>
The maximum number of satoshis that will be paid as a fee of the payment. This value can be represented either as a percentage of the amount being sent, or as a fixed amount of the maximum fee the user is willing the pay to send the payment.
outgoing_chan_id: u64
The channel id of the channel that must be taken to the first hop. If zero, any channel may be used.
last_hop_pubkey: Vec<u8>
The pubkey of the last hop of the route. If empty, any hop may be used.
cltv_limit: u32
An optional maximum total time lock for the route. This should not exceed
lnd’s --max-cltv-expiry
setting. If zero, then the value of
--max-cltv-expiry
is enforced.
dest_custom_records: HashMap<u64, Vec<u8>>
An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
allow_self_payment: bool
§dest_features: Vec<i32>
Features assumed to be supported by the final node. All transitive feature dependencies must also be set properly. For a given feature bit pair, either optional or remote may be set, but not both. If this field is nil or empty, the router will try to load destination features from the graph as a fallback.
Implementations§
Source§impl SendRequest
impl SendRequest
Sourcepub fn dest_features(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<FeatureBit>>
pub fn dest_features( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<FeatureBit>>
Returns an iterator which yields the valid enum values contained in dest_features
.
Sourcepub fn push_dest_features(&mut self, value: FeatureBit)
pub fn push_dest_features(&mut self, value: FeatureBit)
Appends the provided enum value to dest_features
.
Trait Implementations§
Source§impl Clone for SendRequest
impl Clone for SendRequest
Source§fn clone(&self) -> SendRequest
fn clone(&self) -> SendRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SendRequest
impl Debug for SendRequest
Source§impl Default for SendRequest
impl Default for SendRequest
Source§fn default() -> SendRequest
fn default() -> SendRequest
Source§impl Message for SendRequest
impl Message for SendRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for SendRequest
impl PartialEq for SendRequest
impl StructuralPartialEq for SendRequest
Auto Trait Implementations§
impl Freeze for SendRequest
impl RefUnwindSafe for SendRequest
impl Send for SendRequest
impl Sync for SendRequest
impl Unpin for SendRequest
impl UnwindSafe for SendRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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>
T
in a tonic::Request