Struct lnd_grpc_rust::lnrpc::SendCoinsRequest
source · pub struct SendCoinsRequest {
pub addr: String,
pub amount: i64,
pub target_conf: i32,
pub sat_per_vbyte: u64,
pub sat_per_byte: i64,
pub send_all: bool,
pub label: String,
pub min_confs: i32,
pub spend_unconfirmed: bool,
}
Fields§
§addr: String
The address to send coins to
amount: i64
The amount in satoshis to send
target_conf: i32
The target number of blocks that this transaction should be confirmed by.
sat_per_vbyte: u64
A manual fee rate set in sat/vbyte that should be used when crafting the transaction.
sat_per_byte: i64
👎Deprecated
Deprecated, use sat_per_vbyte. A manual fee rate set in sat/vbyte that should be used when crafting the transaction.
send_all: bool
If set, then the amount field will be ignored, and lnd will attempt to send all the coins under control of the internal wallet to the specified address.
label: String
An optional label for the transaction, limited to 500 characters.
min_confs: i32
The minimum number of confirmations each one of your outputs used for the transaction must satisfy.
spend_unconfirmed: bool
Whether unconfirmed outputs should be used as inputs for the transaction.
Trait Implementations§
source§impl Clone for SendCoinsRequest
impl Clone for SendCoinsRequest
source§fn clone(&self) -> SendCoinsRequest
fn clone(&self) -> SendCoinsRequest
Returns a copy 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 SendCoinsRequest
impl Debug for SendCoinsRequest
source§impl Default for SendCoinsRequest
impl Default for SendCoinsRequest
source§impl Message for SendCoinsRequest
impl Message for SendCoinsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for SendCoinsRequest
impl PartialEq for SendCoinsRequest
source§fn eq(&self, other: &SendCoinsRequest) -> bool
fn eq(&self, other: &SendCoinsRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SendCoinsRequest
Auto Trait Implementations§
impl RefUnwindSafe for SendCoinsRequest
impl Send for SendCoinsRequest
impl Sync for SendCoinsRequest
impl Unpin for SendCoinsRequest
impl UnwindSafe for SendCoinsRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Wrap the input message
T
in a tonic::Request