pub struct CreateReleaseBuilder<'a> { /* private fields */ }Expand description
Builder for CreateRelease.
Implementations§
source§impl<'a> CreateReleaseBuilder<'a>
impl<'a> CreateReleaseBuilder<'a>
sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to query for the packages.
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the link.
Link names must be unique in the release.
sourcepub fn tag_name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn tag_name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The tag associated with the release.
sourcepub fn tag_message<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn tag_message<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Message to use if creating a new annotated tag.
sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The description of the release.
You can use Markdown.
sourcepub fn ref_sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn ref_sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
If a tag specified in tag_name doesn’t exist, the release is created from ref and tagged with tag_name.
It can be a commit SHA, another tag name, or a branch name.
sourcepub fn released_at(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn released_at(&mut self, value: DateTime<Utc>) -> &mut Self
Date and time for the release.
Defaults to the current time. Only provide this field if creating an upcoming or historical release.
sourcepub fn build(&self) -> Result<CreateRelease<'a>, CreateReleaseBuilderError>
pub fn build(&self) -> Result<CreateRelease<'a>, CreateReleaseBuilderError>
source§impl<'a> CreateReleaseBuilder<'a>
impl<'a> CreateReleaseBuilder<'a>
sourcepub fn milestone<M>(&mut self, milestone: M) -> &mut Self
pub fn milestone<M>(&mut self, milestone: M) -> &mut Self
The title of a milestone the release is associated with.
sourcepub fn milestones<I, M>(&mut self, milestones: I) -> &mut Self
pub fn milestones<I, M>(&mut self, milestones: I) -> &mut Self
The title of milestones the release is associated with.
sourcepub fn asset(&mut self, asset: CreateReleaseAssetLinks<'a>) -> &mut Self
pub fn asset(&mut self, asset: CreateReleaseAssetLinks<'a>) -> &mut Self
A link to an asset in the release.
sourcepub fn assets<I>(&mut self, assets: I) -> &mut Selfwhere
I: Iterator<Item = CreateReleaseAssetLinks<'a>>,
pub fn assets<I>(&mut self, assets: I) -> &mut Selfwhere
I: Iterator<Item = CreateReleaseAssetLinks<'a>>,
An iterator over links to assets in the release.
Trait Implementations§
source§impl<'a> Clone for CreateReleaseBuilder<'a>
impl<'a> Clone for CreateReleaseBuilder<'a>
source§fn clone(&self) -> CreateReleaseBuilder<'a>
fn clone(&self) -> CreateReleaseBuilder<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for CreateReleaseBuilder<'a>
impl<'a> RefUnwindSafe for CreateReleaseBuilder<'a>
impl<'a> Send for CreateReleaseBuilder<'a>
impl<'a> Sync for CreateReleaseBuilder<'a>
impl<'a> Unpin for CreateReleaseBuilder<'a>
impl<'a> UnwindSafe for CreateReleaseBuilder<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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