pub struct PullsCreateRequest {
pub title: Option<String>,
pub head: String,
pub head_repo: Option<String>,
pub base: String,
pub body: Option<String>,
pub maintainer_can_modify: Option<bool>,
pub draft: Option<bool>,
pub issue: Option<i64>,
}
Fields§
§title: Option<String>
The title of the new pull request. Required unless issue
is specified.
head: String
The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head
with a user like this: username:branch
.
head_repo: Option<String>
The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.
base: String
The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
body: Option<String>
The contents of the pull request.
maintainer_can_modify: Option<bool>
Indicates whether maintainers can modify the pull request.
draft: Option<bool>
Indicates whether the pull request is a draft. See "Draft Pull Requests" in the GitHub Help documentation to learn more.
issue: Option<i64>
An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless title
is specified.
Implementations§
Source§impl PullsCreateRequest
impl PullsCreateRequest
pub fn new(head: String, base: String) -> PullsCreateRequest
Trait Implementations§
Source§impl Clone for PullsCreateRequest
impl Clone for PullsCreateRequest
Source§fn clone(&self) -> PullsCreateRequest
fn clone(&self) -> PullsCreateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more