pub struct CreditCost {
pub priced: bool,
pub pricing_label: String,
pub unpriced_reason: Option<String>,
pub billable_input_tokens: u64,
pub cached_input_tokens: u64,
pub output_tokens: u64,
pub credits: f64,
}Fields§
§priced: bool§pricing_label: String§unpriced_reason: Option<String>§billable_input_tokens: u64§cached_input_tokens: u64§output_tokens: u64§credits: f64Trait Implementations§
Source§impl Clone for CreditCost
impl Clone for CreditCost
Source§fn clone(&self) -> CreditCost
fn clone(&self) -> CreditCost
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 CreditCost
impl Debug for CreditCost
Source§impl PartialEq for CreditCost
impl PartialEq for CreditCost
Source§fn eq(&self, other: &CreditCost) -> bool
fn eq(&self, other: &CreditCost) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreditCost
Auto Trait Implementations§
impl Freeze for CreditCost
impl RefUnwindSafe for CreditCost
impl Send for CreditCost
impl Sync for CreditCost
impl Unpin for CreditCost
impl UnsafeUnpin for CreditCost
impl UnwindSafe for CreditCost
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