pub struct UsageCostEstimate {
pub input_cost_usd: f64,
pub output_cost_usd: f64,
pub cache_creation_cost_usd: f64,
pub cache_read_cost_usd: f64,
}Fields§
§input_cost_usd: f64§output_cost_usd: f64§cache_creation_cost_usd: f64§cache_read_cost_usd: f64Implementations§
Source§impl UsageCostEstimate
impl UsageCostEstimate
pub fn total_cost_usd(self) -> f64
Trait Implementations§
Source§impl Clone for UsageCostEstimate
impl Clone for UsageCostEstimate
Source§fn clone(&self) -> UsageCostEstimate
fn clone(&self) -> UsageCostEstimate
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 UsageCostEstimate
impl Debug for UsageCostEstimate
Source§impl PartialEq for UsageCostEstimate
impl PartialEq for UsageCostEstimate
impl Copy for UsageCostEstimate
impl StructuralPartialEq for UsageCostEstimate
Auto Trait Implementations§
impl Freeze for UsageCostEstimate
impl RefUnwindSafe for UsageCostEstimate
impl Send for UsageCostEstimate
impl Sync for UsageCostEstimate
impl Unpin for UsageCostEstimate
impl UnsafeUnpin for UsageCostEstimate
impl UnwindSafe for UsageCostEstimate
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