pub struct WalletReservationsReserveResult {
pub reservation_id: String,
pub coin_ids: Vec<String>,
pub expires_at_unix: u64,
pub ttl_secs: u64,
}Expand description
control.wallet.reservations.reserve — the handle for a hold that was taken in full.
Only ever returned when EVERY requested coin was taken. A conflict on any one of them is the
error WalletCoinsReserved and reserves
nothing, so this type has deliberately no “partially reserved” shape to represent.
Fields§
§reservation_id: StringThe handle to release with. OPAQUE — store it and send it back; never parse or derive one.
coin_ids: Vec<String>The coins now held, lowercase 64-hex, echoed back so a client can compare what it asked for against what it got without re-normalizing either side.
expires_at_unix: u64Unix seconds after which this hold lapses on its own.
ttl_secs: u64The lifetime the node ACTUALLY applied, in seconds — which may be shorter than the
ttl_secs requested.
Returned rather than assumed, because a caller that asked for an hour and silently got ten minutes would release far too late and believe its coins were still held long after they were selectable again.
Trait Implementations§
Source§impl Clone for WalletReservationsReserveResult
impl Clone for WalletReservationsReserveResult
Source§fn clone(&self) -> WalletReservationsReserveResult
fn clone(&self) -> WalletReservationsReserveResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more