[−][src]Struct lnrpc::QueryRoutesRequest
Fields
pub_key: String
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.
final_cltv_delta: i32
An optional CLTV delta from the current height that should be used for the timelock of the final hop. Note that unlike SendPayment, QueryRoutes does not add any additional block padding on top of final_ctlv_delta. This padding of a few blocks needs to be added manually or otherwise failures may happen when a block comes in while the payment is in flight.
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.
ignored_nodes: Vec<Vec<u8>>
A list of nodes to ignore during path finding. When using REST, these fields must be encoded as base64.
ignored_edges: Vec<EdgeLocator>
Deprecated. A list of edges to ignore during path finding.
source_pub_key: String
The source node where the request route should originated from. If empty, self is assumed.
use_mission_control: bool
If set to true, edge probabilities from mission control will be used to get the optimal route.
ignored_pairs: Vec<NodePair>
A list of directed node pairs that will be ignored during path finding.
cltv_limit: u32
An optional maximum total time lock for the route. If the source is empty or
ourselves, this should not exceed lnd's --max-cltv-expiry
setting. If
zero, then the value of --max-cltv-expiry
is used as the limit.
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. If the destination does not support the specified recrods, and error will be returned. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.
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.
route_hints: Vec<RouteHint>
Optional route hints to reach the destination through private channels.
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
impl QueryRoutesRequest
[src]
pub fn dest_features(
&self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<FeatureBit>>
[src]
&self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<FeatureBit>>
Returns an iterator which yields the valid enum values contained in dest_features
.
pub fn push_dest_features(&mut self, value: FeatureBit)
[src]
Appends the provided enum value to dest_features
.
Trait Implementations
impl Clone for QueryRoutesRequest
[src]
fn clone(&self) -> QueryRoutesRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for QueryRoutesRequest
[src]
impl Default for QueryRoutesRequest
[src]
fn default() -> QueryRoutesRequest
[src]
impl Message for QueryRoutesRequest
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<QueryRoutesRequest> for QueryRoutesRequest
[src]
fn eq(&self, other: &QueryRoutesRequest) -> bool
[src]
fn ne(&self, other: &QueryRoutesRequest) -> bool
[src]
impl StructuralPartialEq for QueryRoutesRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for QueryRoutesRequest
impl Send for QueryRoutesRequest
impl Sync for QueryRoutesRequest
impl Unpin for QueryRoutesRequest
impl UnwindSafe for QueryRoutesRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,