Download codex-rs/codex-backend-openapi-models/src/models/git_pull_request.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 2.36 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/git_pull_request.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/codex-backend-openapi-models/src/models/git_pull_request.rs
-
curl -L -o git_pull_request.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-backend-openapi-models/src/models/git_pull_request.rs
2.36 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 GitPullRequest { | |
| pub number: i32, | |
| pub url: String, | |
| pub state: String, | |
| pub merged: bool, | |
| pub mergeable: bool, | |
| pub draft: Option<bool>, | |
| pub title: Option<String>, | |
| pub body: Option<String>, | |
| pub base: Option<String>, | |
| pub head: Option<String>, | |
| pub base_sha: Option<String>, | |
| pub head_sha: Option<String>, | |
| pub merge_commit_sha: Option<String>, | |
| pub comments: Option<serde_json::Value>, | |
| pub diff: Option<serde_json::Value>, | |
| pub user: Option<serde_json::Value>, | |
| } | |
| impl GitPullRequest { | |
| pub fn new( | |
| number: i32, | |
| url: String, | |
| state: String, | |
| merged: bool, | |
| mergeable: bool, | |
| ) -> GitPullRequest { | |
| GitPullRequest { | |
| number, | |
| url, | |
| state, | |
| merged, | |
| mergeable, | |
| draft: None, | |
| title: None, | |
| body: None, | |
| base: None, | |
| head: None, | |
| base_sha: None, | |
| head_sha: None, | |
| merge_commit_sha: None, | |
| comments: None, | |
| diff: None, | |
| user: None, | |
| } | |
| } | |
| } | |