pub struct ProviderRow {
pub cost_cents: Option<i32>,
pub provider: Option<String>,
pub requests: Option<i32>,
pub tokens: Option<i32>,
}Fields§
§cost_cents: Option<i32>CostCents is what they cost the org, in US cents.
provider: Option<String>Provider is the upstream the requests were routed to, e.g. anthropic.
requests: Option<i32>Requests is how many completions the org made against that provider.
tokens: Option<i32>Tokens is the total tokens those completions consumed, prompt plus completion.
Implementations§
Source§impl ProviderRow
impl ProviderRow
pub fn new() -> ProviderRow
Trait Implementations§
Source§impl Clone for ProviderRow
impl Clone for ProviderRow
Source§fn clone(&self) -> ProviderRow
fn clone(&self) -> ProviderRow
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 ProviderRow
impl Debug for ProviderRow
Source§impl Default for ProviderRow
impl Default for ProviderRow
Source§fn default() -> ProviderRow
fn default() -> ProviderRow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderRow
impl<'de> Deserialize<'de> for ProviderRow
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 ProviderRow
impl PartialEq for ProviderRow
Source§impl Serialize for ProviderRow
impl Serialize for ProviderRow
impl StructuralPartialEq for ProviderRow
Auto Trait Implementations§
impl Freeze for ProviderRow
impl RefUnwindSafe for ProviderRow
impl Send for ProviderRow
impl Sync for ProviderRow
impl Unpin for ProviderRow
impl UnsafeUnpin for ProviderRow
impl UnwindSafe for ProviderRow
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