pub struct PlanCost {
pub estimated_tokens: i32,
pub estimated_duration_ms: i64,
pub monetary_cost_usd: Option<f64>,
}Expand description
Cost estimate for a plan.
Fields§
§estimated_tokens: i32Estimated token usage
estimated_duration_ms: i64Estimated duration in milliseconds
monetary_cost_usd: Option<f64>Monetary cost in USD (if applicable)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanCost
impl<'de> Deserialize<'de> for PlanCost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PlanCost
Auto Trait Implementations§
impl Freeze for PlanCost
impl RefUnwindSafe for PlanCost
impl Send for PlanCost
impl Sync for PlanCost
impl Unpin for PlanCost
impl UnwindSafe for PlanCost
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