pub struct CreditInfo {
pub current_credits: f64,
pub estimated_cost: f64,
pub credits_after_request: f64,
pub reset_date: String,
}Expand description
Represents information about credit usage for a request.
Fields§
§current_credits: f64The number of credits available before the request.
estimated_cost: f64The estimated number of credits that the request will cost.
credits_after_request: f64The estimated number of credits remaining after the request.
reset_date: StringThe date when the credit balance is next scheduled to be reset.
Trait Implementations§
Source§impl Clone for CreditInfo
impl Clone for CreditInfo
Source§fn clone(&self) -> CreditInfo
fn clone(&self) -> CreditInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 CreditInfo
impl Debug for CreditInfo
Source§impl<'de> Deserialize<'de> for CreditInfo
impl<'de> Deserialize<'de> for CreditInfo
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
Auto Trait Implementations§
impl Freeze for CreditInfo
impl RefUnwindSafe for CreditInfo
impl Send for CreditInfo
impl Sync for CreditInfo
impl Unpin for CreditInfo
impl UnsafeUnpin for CreditInfo
impl UnwindSafe for CreditInfo
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