pub struct NewRelease<'a> {
pub tag: &'a str,
pub name: &'a str,
pub body: &'a str,
pub sha: &'a str,
pub stage: Stage,
pub assets: &'a [String],
}Expand description
The Release a run creates for a tag: a draft for release, or a Release
published at once for ensure_release.
Not #[non_exhaustive]: verctl-release constructs it directly.
Fields§
§tag: &'a strThe tag the Release is for.
name: &'a strThe Release title.
body: &'a strThe Release notes.
sha: &'a strThe commit the tag is created at, and the one an existing tag must name.
stage: StageWhether the Release is the stable one or a candidate.
assets: &'a [String]The asset names the draft must contain before it is published, because an immutable Release takes no asset once published (immutable releases). Empty, the draft is published with none.
Trait Implementations§
Source§impl<'a> Clone for NewRelease<'a>
impl<'a> Clone for NewRelease<'a>
impl<'a> Copy for NewRelease<'a>
Auto Trait Implementations§
impl<'a> Forget for NewRelease<'a>
impl<'a> Freeze for NewRelease<'a>
impl<'a> Move for NewRelease<'a>
impl<'a> RefUnwindSafe for NewRelease<'a>
impl<'a> Send for NewRelease<'a>
impl<'a> Sync for NewRelease<'a>where
RawVecInner: Sync,
impl<'a> Unpin for NewRelease<'a>
impl<'a> UnsafeUnpin for NewRelease<'a>
impl<'a> UnwindSafe for NewRelease<'a>
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