pub struct ActivityData {
pub date: String,
pub model: String,
pub model_permaslug: String,
pub endpoint_id: String,
pub provider_name: String,
pub usage: f64,
pub byok_usage_inference: f64,
pub requests: f64,
pub prompt_tokens: f64,
pub completion_tokens: f64,
pub reasoning_tokens: f64,
}Expand description
One row of daily activity grouped by model endpoint.
Fields§
§date: StringUTC date of the row.
model: StringModel id.
model_permaslug: StringStable model permaslug (immutable across renames).
endpoint_id: StringEndpoint identifier within the model.
provider_name: StringProvider that served the requests.
usage: f64USD spent on this row.
byok_usage_inference: f64USD spent on BYOK inference (not deducted from credits).
requests: f64Request count.
prompt_tokens: f64Prompt tokens.
completion_tokens: f64Completion tokens.
reasoning_tokens: f64Reasoning tokens.
Trait Implementations§
Source§impl Clone for ActivityData
impl Clone for ActivityData
Source§fn clone(&self) -> ActivityData
fn clone(&self) -> ActivityData
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 ActivityData
impl Debug for ActivityData
Source§impl Default for ActivityData
impl Default for ActivityData
Source§fn default() -> ActivityData
fn default() -> ActivityData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActivityData
impl<'de> Deserialize<'de> for ActivityData
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 ActivityData
impl PartialEq for ActivityData
Source§impl Serialize for ActivityData
impl Serialize for ActivityData
impl StructuralPartialEq for ActivityData
Auto Trait Implementations§
impl Freeze for ActivityData
impl RefUnwindSafe for ActivityData
impl Send for ActivityData
impl Sync for ActivityData
impl Unpin for ActivityData
impl UnsafeUnpin for ActivityData
impl UnwindSafe for ActivityData
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