Download codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_details.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_details.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_details.rs
-
curl -L -o rate_limit_status_details.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_details.rs
1.22 kB
| /* | |
| * codex-backend | |
| * | |
| * codex-backend | |
| * | |
| * The version of the OpenAPI document: 0.0.1 | |
| * | |
| * Generated by: https://openapi-generator.tech | |
| */ | |
| use crate::models; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| pub struct RateLimitStatusDetails { | |
| pub allowed: bool, | |
| pub limit_reached: bool, | |
| pub primary_window: Option<Option<Box<models::RateLimitWindowSnapshot>>>, | |
| pub secondary_window: Option<Option<Box<models::RateLimitWindowSnapshot>>>, | |
| } | |
| impl RateLimitStatusDetails { | |
| pub fn new(allowed: bool, limit_reached: bool) -> RateLimitStatusDetails { | |
| RateLimitStatusDetails { | |
| allowed, | |
| limit_reached, | |
| primary_window: None, | |
| secondary_window: None, | |
| } | |
| } | |
| } | |