pub struct ActivityPoint {
pub cost_cents: Option<i32>,
pub day: Option<String>,
pub requests: Option<i32>,
pub tokens: Option<i32>,
}Fields§
§cost_cents: Option<i32>CostCents is the day’s spend in whole US cents. A series is only ever returned for a subject the caller is authorized to see, so this is never withheld: 0 means no spend that day.
day: Option<String>Day is the UTC calendar day this point covers, "2006-01-02".
requests: Option<i32>Requests is the subject’s request count on this day. 0 is a real, quiet day: the series is gap-filled, so every day in the range is present whether or not anything happened.
tokens: Option<i32>Tokens is prompt+completion tokens on this day — normally the heatmap’s intensity, scaled against ActivityTotals.MaxTokens.
Implementations§
Source§impl ActivityPoint
impl ActivityPoint
pub fn new() -> ActivityPoint
Trait Implementations§
Source§impl Clone for ActivityPoint
impl Clone for ActivityPoint
Source§fn clone(&self) -> ActivityPoint
fn clone(&self) -> ActivityPoint
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 ActivityPoint
impl Debug for ActivityPoint
Source§impl Default for ActivityPoint
impl Default for ActivityPoint
Source§fn default() -> ActivityPoint
fn default() -> ActivityPoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActivityPoint
impl<'de> Deserialize<'de> for ActivityPoint
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 ActivityPoint
impl PartialEq for ActivityPoint
Source§impl Serialize for ActivityPoint
impl Serialize for ActivityPoint
impl StructuralPartialEq for ActivityPoint
Auto Trait Implementations§
impl Freeze for ActivityPoint
impl RefUnwindSafe for ActivityPoint
impl Send for ActivityPoint
impl Sync for ActivityPoint
impl Unpin for ActivityPoint
impl UnsafeUnpin for ActivityPoint
impl UnwindSafe for ActivityPoint
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