#[non_exhaustive]pub struct Estimate {
pub max_passes: u64,
pub input_tokens: u64,
pub cost_nanos: u64,
}Expand description
An item’s estimate: an upper bound on its input cost.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_passes: u64The passes the estimate bills: the input’s max_passes.
input_tokens: u64Input tokens billed over every pass.
cost_nanos: u64Their cost, rounded up to a whole nanodollar.
Implementations§
Trait Implementations§
impl Copy for Estimate
impl Eq for Estimate
impl StructuralPartialEq for Estimate
Auto Trait Implementations§
impl Freeze for Estimate
impl RefUnwindSafe for Estimate
impl Send for Estimate
impl Sync for Estimate
impl Unpin for Estimate
impl UnsafeUnpin for Estimate
impl UnwindSafe for Estimate
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