pub struct RateLimitResetCreditsSummary {
pub available_count: i64,
pub credits: Option<Vec<RateLimitResetCredit>>,
}Expand description
RateLimitResetCreditsSummary
JSON schema
{
"type": "object",
"required": [
"availableCount"
],
"properties": {
"availableCount": {
"type": "integer",
"format": "int64"
},
"credits": {
"description": "Detail rows for available reset credits, when the backend provides them.\n\n`null` means only `availableCount` is known, while an empty array means details were fetched and no available credits were returned. The backend may cap this list, so its length can be less than `availableCount`.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/RateLimitResetCredit"
}
}
}
}Fields§
§available_count: i64§credits: Option<Vec<RateLimitResetCredit>>Detail rows for available reset credits, when the backend provides them.
null means only availableCount is known, while an empty array means details were fetched and no available credits were returned. The backend may cap this list, so its length can be less than availableCount.
Trait Implementations§
Source§impl Clone for RateLimitResetCreditsSummary
impl Clone for RateLimitResetCreditsSummary
Source§fn clone(&self) -> RateLimitResetCreditsSummary
fn clone(&self) -> RateLimitResetCreditsSummary
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 RateLimitResetCreditsSummary
impl Debug for RateLimitResetCreditsSummary
Source§impl<'de> Deserialize<'de> for RateLimitResetCreditsSummary
impl<'de> Deserialize<'de> for RateLimitResetCreditsSummary
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 RateLimitResetCreditsSummary
impl RefUnwindSafe for RateLimitResetCreditsSummary
impl Send for RateLimitResetCreditsSummary
impl Sync for RateLimitResetCreditsSummary
impl Unpin for RateLimitResetCreditsSummary
impl UnsafeUnpin for RateLimitResetCreditsSummary
impl UnwindSafe for RateLimitResetCreditsSummary
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