pub struct TransferCostEstimate {
pub bytes: u64,
pub cheapest_provider: String,
pub cheapest_cost: f64,
pub most_expensive_provider: String,
pub most_expensive_cost: f64,
pub all_estimates: Vec<(String, f64)>,
}Expand description
Estimated transfer cost across providers
Fields§
§bytes: u64Number of bytes to transfer
cheapest_provider: StringCheapest provider ID
cheapest_cost: f64Cost for cheapest provider (USD)
most_expensive_provider: StringMost expensive provider ID
most_expensive_cost: f64Cost for most expensive provider (USD)
all_estimates: Vec<(String, f64)>All provider estimates
Trait Implementations§
Source§impl Clone for TransferCostEstimate
impl Clone for TransferCostEstimate
Source§fn clone(&self) -> TransferCostEstimate
fn clone(&self) -> TransferCostEstimate
Returns a duplicate 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 TransferCostEstimate
impl Debug for TransferCostEstimate
Auto Trait Implementations§
impl Freeze for TransferCostEstimate
impl RefUnwindSafe for TransferCostEstimate
impl Send for TransferCostEstimate
impl Sync for TransferCostEstimate
impl Unpin for TransferCostEstimate
impl UnsafeUnpin for TransferCostEstimate
impl UnwindSafe for TransferCostEstimate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.