pub struct FetchClaimDepositQuoteResponse {
pub amount_sats: u64,
pub confirmations: u32,
pub instant: Option<ClaimDepositQuote>,
pub mature: ClaimDepositQuote,
}Fields§
§amount_sats: u64§confirmations: u32Confirmations the deposit has now, 0 while unconfirmed.
instant: Option<ClaimDepositQuote>Claiming ahead of maturity, for a spread. Absent when the provider offers no such option for this deposit, and when claiming early would not actually be earlier: a deposit that has already matured, or a plan crediting no sooner than maturity would, is only ever the more expensive way to wait.
Also absent when the provider could not be reached for a quote, which is not distinguished here from having nothing to offer: both mean there is no early claim to show right now, and the one worth retrying is the transient one.
Priced regardless of the configured maximum claim fee, which is usually far
below a spread. It is quoted so it can be offered, so claiming it needs a max
fee of at least its fee_sats. Below that the claim fails with
MaxDepositClaimFeeExceeded and the deposit waits for maturity.
mature: ClaimDepositQuoteClaiming once the deposit matures.
Trait Implementations§
Source§impl Clone for FetchClaimDepositQuoteResponse
impl Clone for FetchClaimDepositQuoteResponse
Source§fn clone(&self) -> FetchClaimDepositQuoteResponse
fn clone(&self) -> FetchClaimDepositQuoteResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FetchClaimDepositQuoteResponse
impl RefUnwindSafe for FetchClaimDepositQuoteResponse
impl Send for FetchClaimDepositQuoteResponse
impl Sync for FetchClaimDepositQuoteResponse
impl Unpin for FetchClaimDepositQuoteResponse
impl UnsafeUnpin for FetchClaimDepositQuoteResponse
impl UnwindSafe for FetchClaimDepositQuoteResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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