pub struct UsageAttempt {
pub operation: Option<Operation>,
pub model: String,
pub usage: Box<NormalizedUsage>,
pub billable: Option<bool>,
pub started_at_ms: Option<i64>,
}Fields§
§operation: Option<Operation>A delegated API may have a different billing operation from its parent session.
model: String§usage: Box<NormalizedUsage>§billable: Option<bool>None when the provider did not establish whether this attempt is charged.
started_at_ms: Option<i64>Trait Implementations§
Source§impl Clone for UsageAttempt
impl Clone for UsageAttempt
Source§impl Debug for UsageAttempt
impl Debug for UsageAttempt
impl Eq for UsageAttempt
Source§impl PartialEq for UsageAttempt
impl PartialEq for UsageAttempt
impl StructuralPartialEq for UsageAttempt
Auto Trait Implementations§
impl Freeze for UsageAttempt
impl RefUnwindSafe for UsageAttempt
impl Send for UsageAttempt
impl Sync for UsageAttempt
impl Unpin for UsageAttempt
impl UnsafeUnpin for UsageAttempt
impl UnwindSafe for UsageAttempt
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