pub struct CostSummary {
pub mode: CostMode,
pub limit: u64,
pub observed: u64,
pub estimated: u64,
pub liability: u64,
pub bound_violations: u64,
pub final_cost: FinalCost,
pub within_guaranteed_cap: bool,
}Expand description
A decision’s cost at the moment its record was built (spec 003, 3.5.6).
Fields§
§mode: CostMode§limit: u640 under unlimited.
observed: u64§estimated: u64§liability: u64Reservations kept because the final cost is unknown.
bound_violations: u64Observed charges above a bounded reservation.
final_cost: FinalCost§within_guaranteed_cap: boolTrue only under hard with no liability and no bound violation.
Trait Implementations§
Source§impl Clone for CostSummary
impl Clone for CostSummary
impl Copy for CostSummary
Source§impl Debug for CostSummary
impl Debug for CostSummary
Source§impl<'de> Deserialize<'de> for CostSummary
impl<'de> Deserialize<'de> for CostSummary
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 Eq for CostSummary
Source§impl JsonSchema for CostSummary
impl JsonSchema for CostSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CostSummary
impl PartialEq for CostSummary
Source§impl Serialize for CostSummary
impl Serialize for CostSummary
impl StructuralPartialEq for CostSummary
Auto Trait Implementations§
impl Freeze for CostSummary
impl RefUnwindSafe for CostSummary
impl Send for CostSummary
impl Sync for CostSummary
impl Unpin for CostSummary
impl UnsafeUnpin for CostSummary
impl UnwindSafe for CostSummary
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