pub struct CreatePrArgs {
pub title: String,
pub body: Option<String>,
pub head: String,
pub base: String,
pub draft: bool,
pub repo: Option<String>,
pub closes_issues: Vec<u64>,
pub milestone: Option<String>,
}Expand description
创建 PR 所需参数。
Fields§
§title: StringPR 标题。
body: Option<String>PR 正文(可选)。
head: String来源分支。
base: String目标分支。
draft: bool是否以草稿方式创建。
repo: Option<String>可选的目标仓库(owner/name 格式),未设置时使用默认仓库。
closes_issues: Vec<u64>需要在合并时自动关闭的 Issue 编号列表。
milestone: Option<String>Milestone identifier to attach on creation (NUMBER or exact TITLE), if any.
Trait Implementations§
Source§impl Clone for CreatePrArgs
impl Clone for CreatePrArgs
Auto Trait Implementations§
impl Forget for CreatePrArgs
impl Freeze for CreatePrArgs
impl Move for CreatePrArgs
impl RefUnwindSafe for CreatePrArgs
impl Send for CreatePrArgs
impl Sync for CreatePrArgs
impl Unpin for CreatePrArgs
impl UnsafeUnpin for CreatePrArgs
impl UnwindSafe for CreatePrArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more