pub struct RateLimitResetCredit {
pub description: Option<String>,
pub expires_at: Option<i64>,
pub granted_at: i64,
pub id: String,
pub reset_type: RateLimitResetType,
pub status: RateLimitResetCreditStatus,
pub title: Option<String>,
}Expand description
RateLimitResetCredit
JSON schema
{
"type": "object",
"required": [
"grantedAt",
"id",
"resetType",
"status"
],
"properties": {
"description": {
"description": "Backend-provided display description for this credit, or `null` when unavailable.",
"type": [
"string",
"null"
]
},
"expiresAt": {
"description": "Unix timestamp in seconds when the credit expires, or `null` if it does not expire.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"grantedAt": {
"description": "Unix timestamp in seconds when the credit was granted.",
"type": "integer",
"format": "int64"
},
"id": {
"description": "Opaque backend identifier for this reset credit.",
"type": "string"
},
"resetType": {
"$ref": "#/definitions/RateLimitResetType"
},
"status": {
"$ref": "#/definitions/RateLimitResetCreditStatus"
},
"title": {
"description": "Backend-provided display title for this credit, or `null` when unavailable.",
"type": [
"string",
"null"
]
}
}
}Fields§
§description: Option<String>Backend-provided display description for this credit, or null when unavailable.
expires_at: Option<i64>Unix timestamp in seconds when the credit expires, or null if it does not expire.
granted_at: i64Unix timestamp in seconds when the credit was granted.
id: StringOpaque backend identifier for this reset credit.
reset_type: RateLimitResetType§status: RateLimitResetCreditStatus§title: Option<String>Backend-provided display title for this credit, or null when unavailable.
Trait Implementations§
Source§impl Clone for RateLimitResetCredit
impl Clone for RateLimitResetCredit
Source§fn clone(&self) -> RateLimitResetCredit
fn clone(&self) -> RateLimitResetCredit
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 RateLimitResetCredit
impl Debug for RateLimitResetCredit
Source§impl<'de> Deserialize<'de> for RateLimitResetCredit
impl<'de> Deserialize<'de> for RateLimitResetCredit
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 RateLimitResetCredit
impl RefUnwindSafe for RateLimitResetCredit
impl Send for RateLimitResetCredit
impl Sync for RateLimitResetCredit
impl Unpin for RateLimitResetCredit
impl UnsafeUnpin for RateLimitResetCredit
impl UnwindSafe for RateLimitResetCredit
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