pub struct CreateReleaseArgs {
pub tag_name: String,
pub name: Option<String>,
pub body: Option<String>,
pub draft: bool,
pub prerelease: bool,
pub target_commitish: Option<String>,
}Expand description
创建 Release 所需参数。
Fields§
§tag_name: String关联的 Git tag 名。
name: Option<String>Release 标题(可选)。
body: Option<String>Release 正文(Markdown)。
draft: bool是否以草稿方式创建。
prerelease: bool是否为预发布版本。
target_commitish: Option<String>目标 commitish(可选,默认当前分支 HEAD)。
Trait Implementations§
Source§impl Clone for CreateReleaseArgs
impl Clone for CreateReleaseArgs
Source§fn clone(&self) -> CreateReleaseArgs
fn clone(&self) -> CreateReleaseArgs
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 CreateReleaseArgs
impl RefUnwindSafe for CreateReleaseArgs
impl Send for CreateReleaseArgs
impl Sync for CreateReleaseArgs
impl Unpin for CreateReleaseArgs
impl UnsafeUnpin for CreateReleaseArgs
impl UnwindSafe for CreateReleaseArgs
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