pub struct Transfer {
pub id: Uuid,
pub sender_identity_public_key: PublicKey,
pub receiver_identity_public_key: PublicKey,
pub status: TransferStatus,
pub total_value_sats: u64,
pub expiry_time_seconds: Option<u64>,
pub leaves: Vec<TransferLeaf>,
}
Expand description
This structure represents a Spark transfer. It is returned when a transfer is initiated, or when querying pending transfers.
Fields§
§id: Uuid
The unique ID of the transfer.
sender_identity_public_key: PublicKey
The public key of the sender.
receiver_identity_public_key: PublicKey
The public key of the receiver.
status: TransferStatus
The current status of the transfer.
total_value_sats: u64
The total value of the transfer, in satoshis.
expiry_time_seconds: Option<u64>
The expiry time of the transfer, in seconds since the Unix epoch.
leaves: Vec<TransferLeaf>
The leaves involved in the transfer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnwindSafe for Transfer
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
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>
Wrap the input message
T
in a tonic::Request