Struct lnd_grpc_rust::invoicesrpc::AddHoldInvoiceRequest
source · pub struct AddHoldInvoiceRequest {
pub memo: String,
pub hash: Vec<u8>,
pub value: i64,
pub value_msat: i64,
pub description_hash: Vec<u8>,
pub expiry: i64,
pub fallback_addr: String,
pub cltv_expiry: u64,
pub route_hints: Vec<RouteHint>,
pub private: bool,
}
Fields§
§memo: String
An optional memo to attach along with the invoice. Used for record keeping purposes for the invoice’s creator, and will also be set in the description field of the encoded payment request if the description_hash field is not being used.
hash: Vec<u8>
The hash of the preimage
value: i64
The value of this invoice in satoshis
The fields value and value_msat are mutually exclusive.
value_msat: i64
The value of this invoice in millisatoshis
The fields value and value_msat are mutually exclusive.
description_hash: Vec<u8>
Hash (SHA-256) of a description of the payment. Used if the description of payment (memo) is too long to naturally fit within the description field of an encoded payment request.
expiry: i64
Payment request expiry time in seconds. Default is 86400 (24 hours).
fallback_addr: String
Fallback on-chain address.
cltv_expiry: u64
Delta to use for the time-lock of the CLTV extended to the final hop.
route_hints: Vec<RouteHint>
Route hints that can each be individually used to assist in reaching the invoice’s destination.
private: bool
Whether this invoice should include routing hints for private channels.
Trait Implementations§
source§impl Clone for AddHoldInvoiceRequest
impl Clone for AddHoldInvoiceRequest
source§fn clone(&self) -> AddHoldInvoiceRequest
fn clone(&self) -> AddHoldInvoiceRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddHoldInvoiceRequest
impl Debug for AddHoldInvoiceRequest
source§impl Default for AddHoldInvoiceRequest
impl Default for AddHoldInvoiceRequest
source§impl Message for AddHoldInvoiceRequest
impl Message for AddHoldInvoiceRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
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,
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,
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,
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,
self
.source§impl PartialEq for AddHoldInvoiceRequest
impl PartialEq for AddHoldInvoiceRequest
source§fn eq(&self, other: &AddHoldInvoiceRequest) -> bool
fn eq(&self, other: &AddHoldInvoiceRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AddHoldInvoiceRequest
Auto Trait Implementations§
impl RefUnwindSafe for AddHoldInvoiceRequest
impl Send for AddHoldInvoiceRequest
impl Sync for AddHoldInvoiceRequest
impl Unpin for AddHoldInvoiceRequest
impl UnwindSafe for AddHoldInvoiceRequest
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
§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>
T
in a tonic::Request