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