Download codex-rs/codex-backend-openapi-models/src/models/spend_control_limit_details.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/spend_control_limit_details.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/codex-backend-openapi-models/src/models/spend_control_limit_details.rs
-
curl -L -o spend_control_limit_details.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/spend_control_limit_details.rs
1.47 kB
| /* | |
| * codex-backend | |
| * | |
| * codex-backend | |
| * | |
| * The version of the OpenAPI document: 0.0.1 | |
| * | |
| * Generated by: https://openapi-generator.tech | |
| */ | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| pub struct SpendControlLimitDetails { | |
| pub source: Option<Option<String>>, | |
| pub limit: String, | |
| pub used: String, | |
| pub remaining: String, | |
| pub used_percent: i32, | |
| pub remaining_percent: i32, | |
| pub reset_after_seconds: i32, | |
| pub reset_at: i32, | |
| } | |
| impl SpendControlLimitDetails { | |
| pub fn new( | |
| limit: String, | |
| used: String, | |
| remaining: String, | |
| used_percent: i32, | |
| remaining_percent: i32, | |
| reset_after_seconds: i32, | |
| reset_at: i32, | |
| ) -> SpendControlLimitDetails { | |
| SpendControlLimitDetails { | |
| source: None, | |
| limit, | |
| used, | |
| remaining, | |
| used_percent, | |
| remaining_percent, | |
| reset_after_seconds, | |
| reset_at, | |
| } | |
| } | |
| } | |