pub struct RunReport {
pub run_id: RunId,
pub usage: UsageReport,
pub cost: Option<CostReport>,
pub limitations: RunReportLimitations,
}Expand description
Run report combining usage, optional cost, and limitations.
Fields§
§run_id: RunIdRun id this report describes.
usage: UsageReportUsage evidence derived from durable trace records.
cost: Option<CostReport>Optional cost estimate.
limitations: RunReportLimitationsReport limitations and caveats.
Implementations§
Source§impl RunReport
impl RunReport
Sourcepub fn from_run_trace(
trace: &RunTrace,
cost_policy: Option<&dyn CostPolicy>,
) -> Result<Self, AgentError>
pub fn from_run_trace( trace: &RunTrace, cost_policy: Option<&dyn CostPolicy>, ) -> Result<Self, AgentError>
Builds a run report from a run trace and optional cost policy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunReport
impl<'de> Deserialize<'de> for RunReport
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 RunReport
impl StructuralPartialEq for RunReport
Auto Trait Implementations§
impl Freeze for RunReport
impl RefUnwindSafe for RunReport
impl Send for RunReport
impl Sync for RunReport
impl Unpin for RunReport
impl UnsafeUnpin for RunReport
impl UnwindSafe for RunReport
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