pub struct ReleaseOperations { /* private fields */ }Expand description
Release Operations
Implementations§
Source§impl ReleaseOperations
impl ReleaseOperations
Sourcepub fn register_template(&mut self, template: ReleaseTemplate)
pub fn register_template(&mut self, template: ReleaseTemplate)
Register a release template
Sourcepub fn get_template(&self, name: &str) -> Option<&ReleaseTemplate>
pub fn get_template(&self, name: &str) -> Option<&ReleaseTemplate>
Get a template
Sourcepub async fn publish_release(
&self,
release: &Release,
) -> Result<ReleasePublishingResult>
pub async fn publish_release( &self, release: &Release, ) -> Result<ReleasePublishingResult>
Publish a release
Sourcepub fn add_changelog_entry(&mut self, entry: ChangelogEntry)
pub fn add_changelog_entry(&mut self, entry: ChangelogEntry)
Add changelog entry
Sourcepub fn get_changelog(&self) -> &Changelog
pub fn get_changelog(&self) -> &Changelog
Get changelog
Sourcepub fn generate_changelog_markdown(&self) -> String
pub fn generate_changelog_markdown(&self) -> String
Generate changelog markdown
Sourcepub fn maintain_changelog(
&mut self,
version: String,
changes: Vec<String>,
contributors: Vec<String>,
) -> Result<()>
pub fn maintain_changelog( &mut self, version: String, changes: Vec<String>, contributors: Vec<String>, ) -> Result<()>
Maintain changelog - add new entry
Sourcepub fn get_release_history(&self) -> Vec<(String, DateTime<Utc>)>
pub fn get_release_history(&self) -> Vec<(String, DateTime<Utc>)>
Get release history from changelog
Sourcepub fn get_latest_release(&self) -> Option<&ChangelogEntry>
pub fn get_latest_release(&self) -> Option<&ChangelogEntry>
Find latest release in changelog
Sourcepub fn get_releases_between(
&self,
from_version: &str,
to_version: &str,
) -> Vec<&ChangelogEntry>
pub fn get_releases_between( &self, from_version: &str, to_version: &str, ) -> Vec<&ChangelogEntry>
Get releases between versions
Trait Implementations§
Source§impl Clone for ReleaseOperations
impl Clone for ReleaseOperations
Source§fn clone(&self) -> ReleaseOperations
fn clone(&self) -> ReleaseOperations
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 ReleaseOperations
impl Debug for ReleaseOperations
Auto Trait Implementations§
impl Freeze for ReleaseOperations
impl RefUnwindSafe for ReleaseOperations
impl Send for ReleaseOperations
impl Sync for ReleaseOperations
impl Unpin for ReleaseOperations
impl UnwindSafe for ReleaseOperations
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> 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