pub struct CreatePr<'a> {
pub title: &'a str,
pub head: &'a str,
pub base: &'a str,
pub body: Option<&'a str>,
pub labels: Option<&'a str>,
pub assignees: Option<&'a str>,
pub testers: Option<&'a str>,
pub milestone_number: Option<i64>,
pub issue: Option<&'a str>,
pub close_related_issue: bool,
pub draft: bool,
}Fields§
§title: &'a str§head: &'a str§base: &'a str§body: Option<&'a str>§labels: Option<&'a str>Comma-joined by the handler (v5 takes one labels string).
assignees: Option<&'a str>§testers: Option<&'a str>§milestone_number: Option<i64>§issue: Option<&'a str>Linked issue ident; paired with close_related_issue=true so the issue
closes on merge (swagger: issue is the string ident;
close_related_issue is boolean).
draft: boolMark the new PR as a draft (draft=true form field). Default false —
omitted from the form when false (server default).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CreatePr<'a>
impl<'a> RefUnwindSafe for CreatePr<'a>
impl<'a> Send for CreatePr<'a>
impl<'a> Sync for CreatePr<'a>
impl<'a> Unpin for CreatePr<'a>
impl<'a> UnsafeUnpin for CreatePr<'a>
impl<'a> UnwindSafe for CreatePr<'a>
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