pub struct CreateReleaseRequest {
pub tag_name: String,
pub target_commitish: Option<String>,
pub name: Option<String>,
pub body: Option<String>,
pub draft: Option<bool>,
pub prerelease: Option<bool>,
pub generate_release_notes: Option<bool>,
}Expand description
Request to create a release.
Fields§
§tag_name: StringTag name (required)
target_commitish: Option<String>Target commitish (branch or commit SHA)
name: Option<String>Release name
body: Option<String>Release body (Markdown)
draft: Option<bool>Whether to create as draft
prerelease: Option<bool>Whether to mark as prerelease
generate_release_notes: Option<bool>Whether to automatically generate the name and body for this release.
When set to true, GitHub will auto-generate the release name (if name
is not provided) and the release notes body from merged pull requests and
other repository activity since the previous release. If name is provided
it is used as-is; if body is provided it is pre-pended to the generated
notes. Defaults to false.
§Example
use github_bot_sdk::client::CreateReleaseRequest;
let request = CreateReleaseRequest {
tag_name: "v1.2.0".to_string(),
target_commitish: None,
name: None,
body: None,
draft: None,
prerelease: None,
generate_release_notes: Some(true),
};Trait Implementations§
Source§impl Clone for CreateReleaseRequest
impl Clone for CreateReleaseRequest
Source§fn clone(&self) -> CreateReleaseRequest
fn clone(&self) -> CreateReleaseRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateReleaseRequest
impl Debug for CreateReleaseRequest
Auto Trait Implementations§
impl Freeze for CreateReleaseRequest
impl RefUnwindSafe for CreateReleaseRequest
impl Send for CreateReleaseRequest
impl Sync for CreateReleaseRequest
impl Unpin for CreateReleaseRequest
impl UnsafeUnpin for CreateReleaseRequest
impl UnwindSafe for CreateReleaseRequest
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