Download codex-rs/codex-backend-openapi-models/src/models/additional_rate_limit_details.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 965 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/additional_rate_limit_details.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/codex-backend-openapi-models/src/models/additional_rate_limit_details.rs
-
curl -L -o additional_rate_limit_details.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/additional_rate_limit_details.rs
965 Bytes
| /* | |
| * 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 AdditionalRateLimitDetails { | |
| pub limit_name: String, | |
| pub metered_feature: String, | |
| pub rate_limit: Option<Option<Box<models::RateLimitStatusDetails>>>, | |
| } | |
| impl AdditionalRateLimitDetails { | |
| pub fn new(limit_name: String, metered_feature: String) -> AdditionalRateLimitDetails { | |
| AdditionalRateLimitDetails { | |
| limit_name, | |
| metered_feature, | |
| rate_limit: None, | |
| } | |
| } | |
| } | |