pub struct CreatePrArgs {
pub title: String,
pub body: Option<String>,
pub head: String,
pub base: String,
pub draft: bool,
pub repo: Option<String>,
}Expand description
创建 PR 所需参数。
Fields§
§title: StringPR 标题。
body: Option<String>PR 正文(可选)。
head: String来源分支。
base: String目标分支。
draft: bool是否以草稿方式创建。
repo: Option<String>可选的目标仓库(owner/name 格式),未设置时使用默认仓库。
Trait Implementations§
Source§impl Clone for CreatePrArgs
impl Clone for CreatePrArgs
Source§fn clone(&self) -> CreatePrArgs
fn clone(&self) -> CreatePrArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze 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> 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