pub struct UsagePoint {
pub requests: Option<i32>,
pub spend_cents: Option<i32>,
pub t: Option<String>,
pub tokens: Option<i32>,
}Fields§
§requests: Option<i32>Requests is how many LLM calls fell in this bucket.
spend_cents: Option<i32>SpendCents is what they cost, in cents.
t: Option<String>T is the bucket’s start, RFC3339 UTC, aligned to the interval.
tokens: Option<i32>Tokens is prompt plus completion tokens over those calls.
Implementations§
Source§impl UsagePoint
impl UsagePoint
pub fn new() -> UsagePoint
Trait Implementations§
Source§impl Clone for UsagePoint
impl Clone for UsagePoint
Source§fn clone(&self) -> UsagePoint
fn clone(&self) -> UsagePoint
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 UsagePoint
impl Debug for UsagePoint
Source§impl Default for UsagePoint
impl Default for UsagePoint
Source§fn default() -> UsagePoint
fn default() -> UsagePoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsagePoint
impl<'de> Deserialize<'de> for UsagePoint
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 UsagePoint
impl PartialEq for UsagePoint
Source§impl Serialize for UsagePoint
impl Serialize for UsagePoint
impl StructuralPartialEq for UsagePoint
Auto Trait Implementations§
impl Freeze for UsagePoint
impl RefUnwindSafe for UsagePoint
impl Send for UsagePoint
impl Sync for UsagePoint
impl Unpin for UsagePoint
impl UnsafeUnpin for UsagePoint
impl UnwindSafe for UsagePoint
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