Download codex-rs/codex-backend-openapi-models/src/models/task_response.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/task_response.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/codex-backend-openapi-models/src/models/task_response.rs
-
curl -L -o task_response.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/task_response.rs
1.81 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 TaskResponse { | |
| pub id: String, | |
| pub created_at: Option<f64>, | |
| pub title: String, | |
| pub has_generated_title: Option<bool>, | |
| pub current_turn_id: Option<String>, | |
| pub has_unread_turn: Option<bool>, | |
| pub denormalized_metadata: Option<std::collections::HashMap<String, serde_json::Value>>, | |
| pub archived: bool, | |
| pub external_pull_requests: Vec<models::ExternalPullRequestResponse>, | |
| } | |
| impl TaskResponse { | |
| pub fn new( | |
| id: String, | |
| title: String, | |
| archived: bool, | |
| external_pull_requests: Vec<models::ExternalPullRequestResponse>, | |
| ) -> TaskResponse { | |
| TaskResponse { | |
| id, | |
| created_at: None, | |
| title, | |
| has_generated_title: None, | |
| current_turn_id: None, | |
| has_unread_turn: None, | |
| denormalized_metadata: None, | |
| archived, | |
| external_pull_requests, | |
| } | |
| } | |
| } | |