pub struct CostEstimate {
pub currency: String,
pub amount: f64,
pub amount_max: Option<f64>,
pub basis: Option<String>,
pub confidence: Option<f64>,
}Expand description
v0.3: the standard ext.cost_estimate shape in step previews.
Fields§
§currency: StringISO 4217 code or deployment-defined unit.
amount: f64Best estimate.
amount_max: Option<f64>Upper bound if known; cost-aware policies should use it conservatively.
basis: Option<String>What the estimate is derived from.
confidence: Option<f64>Confidence in [0, 1].
Trait Implementations§
Source§impl Clone for CostEstimate
impl Clone for CostEstimate
Source§impl Debug for CostEstimate
impl Debug for CostEstimate
Source§impl<'de> Deserialize<'de> for CostEstimate
impl<'de> Deserialize<'de> for CostEstimate
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
Auto Trait Implementations§
impl Freeze for CostEstimate
impl RefUnwindSafe for CostEstimate
impl Send for CostEstimate
impl Sync for CostEstimate
impl Unpin for CostEstimate
impl UnsafeUnpin for CostEstimate
impl UnwindSafe for CostEstimate
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