pub struct RoutedUsage {
pub account: Option<String>,
pub billing: Option<String>,
pub completion_tokens: Option<i32>,
pub cost_cents: Option<i32>,
pub kind: Option<String>,
pub prompt_tokens: Option<i32>,
pub provider: Option<String>,
pub requests: Option<i32>,
pub total_tokens: Option<i32>,
}Fields§
§account: Option<String>Account is the provider-side account identifier.
billing: Option<String>Billing is how the routed inference bills: plan or commerce.
completion_tokens: Option<i32>CompletionTokens is the routed completion-token count.
cost_cents: Option<i32>CostCents is the routed cost in cents.
kind: Option<String>Kind is how the account authenticates: subscription or apikey.
prompt_tokens: Option<i32>PromptTokens is the routed prompt-token count.
provider: Option<String>Provider is the AI provider the row’s account belongs to.
requests: Option<i32>Requests is how many requests the gateway routed through this account.
total_tokens: Option<i32>TotalTokens is the routed total token count.
Implementations§
Source§impl RoutedUsage
impl RoutedUsage
pub fn new() -> RoutedUsage
Trait Implementations§
Source§impl Clone for RoutedUsage
impl Clone for RoutedUsage
Source§fn clone(&self) -> RoutedUsage
fn clone(&self) -> RoutedUsage
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 RoutedUsage
impl Debug for RoutedUsage
Source§impl Default for RoutedUsage
impl Default for RoutedUsage
Source§fn default() -> RoutedUsage
fn default() -> RoutedUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoutedUsage
impl<'de> Deserialize<'de> for RoutedUsage
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 RoutedUsage
impl PartialEq for RoutedUsage
Source§impl Serialize for RoutedUsage
impl Serialize for RoutedUsage
impl StructuralPartialEq for RoutedUsage
Auto Trait Implementations§
impl Freeze for RoutedUsage
impl RefUnwindSafe for RoutedUsage
impl Send for RoutedUsage
impl Sync for RoutedUsage
impl Unpin for RoutedUsage
impl UnsafeUnpin for RoutedUsage
impl UnwindSafe for RoutedUsage
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