#[non_exhaustive]pub struct ReleaseCreate {
pub tag: String,
pub title: Option<String>,
pub notes: Option<String>,
pub draft: bool,
pub prerelease: bool,
}Expand description
Options for GitHubApi::release_create (gh release create).
#[non_exhaustive], so build it through ReleaseCreate::new (the tag) and
the chained title / notes /
draft / prerelease
setters rather than a struct literal. Asset uploads are deliberately out of
scope — attach files with run if you need them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tag: StringThe Git tag the release is attached to (gh’s bare <tag> positional). If no
such tag exists, gh creates one from the default branch’s latest state.
title: Option<String>The release title (--title); None lets gh default it (to the tag).
notes: Option<String>The release notes / body (--notes); None leaves notes unset. Note that
gh requires notes when run non-interactively, so a headless create
should set this (or drive --notes-file/--generate-notes via
run) — otherwise gh errors asking for notes.
draft: boolSave the release as a draft instead of publishing it (--draft).
prerelease: boolMark the release as a prerelease (--prerelease).
Implementations§
Source§impl ReleaseCreate
impl ReleaseCreate
Trait Implementations§
Source§impl Clone for ReleaseCreate
impl Clone for ReleaseCreate
Source§fn clone(&self) -> ReleaseCreate
fn clone(&self) -> ReleaseCreate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more