pub struct ReadModel {
pub provider_cost_compatibility: Option<ProviderCostCompatibility>,
}Expand description
Pure projections over caller-supplied control and transcript values.
Fields§
§provider_cost_compatibility: Option<ProviderCostCompatibility>Implementations§
Source§impl ReadModel
impl ReadModel
pub fn prepare_control_state(&self, state: &mut Value)
pub fn active_summary(&self, record: SessionRecord) -> SessionRecord
pub fn active(&self, record: SessionRecord, log: &SessionLog) -> SessionRecord
pub fn completed( &self, receipt: CompletionReceipt, summary: bool, ) -> SessionRecord
pub fn legacy_provider_cost_summary_for_archive( &self, archive: &Value, session_state: Option<&Value>, ) -> Result<Option<ProviderCostSummary>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadModel
impl RefUnwindSafe for ReadModel
impl Send for ReadModel
impl Sync for ReadModel
impl Unpin for ReadModel
impl UnsafeUnpin for ReadModel
impl UnwindSafe for ReadModel
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