pub struct ModelUsageLedgerEntry {
pub invocation_id: InvocationId,
pub agent_id: Option<AgentId>,
pub requested_model_id: String,
pub resolved_model_id: String,
pub credential_source: ModelCredentialSource,
pub state: InvocationState,
pub usage: Option<TokenUsage>,
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}Fields§
§invocation_id: InvocationId§agent_id: Option<AgentId>§requested_model_id: String§resolved_model_id: String§credential_source: ModelCredentialSource§state: InvocationState§usage: Option<TokenUsage>§created_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for ModelUsageLedgerEntry
impl Clone for ModelUsageLedgerEntry
Source§fn clone(&self) -> ModelUsageLedgerEntry
fn clone(&self) -> ModelUsageLedgerEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelUsageLedgerEntry
impl Debug for ModelUsageLedgerEntry
Source§impl<'de> Deserialize<'de> for ModelUsageLedgerEntry
impl<'de> Deserialize<'de> for ModelUsageLedgerEntry
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
Source§impl PartialEq for ModelUsageLedgerEntry
impl PartialEq for ModelUsageLedgerEntry
Source§impl Serialize for ModelUsageLedgerEntry
impl Serialize for ModelUsageLedgerEntry
impl StructuralPartialEq for ModelUsageLedgerEntry
Auto Trait Implementations§
impl Freeze for ModelUsageLedgerEntry
impl RefUnwindSafe for ModelUsageLedgerEntry
impl Send for ModelUsageLedgerEntry
impl Sync for ModelUsageLedgerEntry
impl Unpin for ModelUsageLedgerEntry
impl UnsafeUnpin for ModelUsageLedgerEntry
impl UnwindSafe for ModelUsageLedgerEntry
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