pub struct NewPullRequest {
pub project: String,
pub source_branch: String,
pub target_branch: String,
pub title: String,
pub body: String,
pub draft: bool,
pub source_project: Option<String>,
pub assignees: Vec<String>,
pub reviewers: Vec<String>,
pub labels: Vec<String>,
pub milestone: Option<u64>,
}Expand description
What opening a pull/merge request needs, host-agnostic.
project is the remote_web_base-derived path (group/sub/proj for
GitLab, owner/name for GitHub); each client encodes it as its API
needs (GitLab URL-encodes it as one segment).
Fields§
§project: String§source_branch: String§target_branch: String§title: String§body: String§draft: bool§source_project: Option<String>The project the source branch lives in, when it is a fork of
project (None: same project). Path form, like project.
assignees: Vec<String>Logins to assign (GitHub, GitLab).
reviewers: Vec<String>Logins asked to review (GitHub, GitLab).
labels: Vec<String>Label names (GitHub, GitLab).
milestone: Option<u64>HostedMilestone::id (GitHub, GitLab).
Implementations§
Source§impl NewPullRequest
impl NewPullRequest
Sourcepub fn fork_source(&self) -> Option<&str>
pub fn fork_source(&self) -> Option<&str>
source_project, only when it really differs from project.
Trait Implementations§
Source§impl Clone for NewPullRequest
impl Clone for NewPullRequest
Source§impl Debug for NewPullRequest
impl Debug for NewPullRequest
Source§impl Default for NewPullRequest
impl Default for NewPullRequest
impl Eq for NewPullRequest
Source§impl PartialEq for NewPullRequest
impl PartialEq for NewPullRequest
impl StructuralPartialEq for NewPullRequest
Auto Trait Implementations§
impl Forget for NewPullRequest
impl Freeze for NewPullRequest
impl Move for NewPullRequest
impl RefUnwindSafe for NewPullRequest
impl Send for NewPullRequest
impl Sync for NewPullRequest
impl Unpin for NewPullRequest
impl UnsafeUnpin for NewPullRequest
impl UnwindSafe for NewPullRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.