Download codex-rs/codex-backend-openapi-models/src/models/external_pull_request_response.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/external_pull_request_response.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/codex-backend-openapi-models/src/models/external_pull_request_response.rs
-
curl -L -o external_pull_request_response.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/external_pull_request_response.rs
1.05 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 ExternalPullRequestResponse { | |
| pub id: String, | |
| pub assistant_turn_id: String, | |
| pub pull_request: Box<models::GitPullRequest>, | |
| pub codex_updated_sha: Option<String>, | |
| } | |
| impl ExternalPullRequestResponse { | |
| pub fn new( | |
| id: String, | |
| assistant_turn_id: String, | |
| pull_request: models::GitPullRequest, | |
| ) -> ExternalPullRequestResponse { | |
| ExternalPullRequestResponse { | |
| id, | |
| assistant_turn_id, | |
| pull_request: Box::new(pull_request), | |
| codex_updated_sha: None, | |
| } | |
| } | |
| } | |