Struct git_cliff_core::release::Release  
source · pub struct Release<'a> {
    pub version: Option<String>,
    pub commits: Vec<Commit<'a>>,
    pub commit_id: Option<String>,
    pub timestamp: i64,
    pub previous: Option<Box<Release<'a>>>,
    pub github: RemoteReleaseMetadata,
    pub gitlab: RemoteReleaseMetadata,
    pub bitbucket: RemoteReleaseMetadata,
}Expand description
Representation of a release.
Fields§
§version: Option<String>Release version, git tag.
commits: Vec<Commit<'a>>Commits made for the release.
commit_id: Option<String>Commit ID of the tag.
timestamp: i64Timestamp of the release in seconds, from epoch.
previous: Option<Box<Release<'a>>>Previous release.
github: RemoteReleaseMetadataAvailable on crate feature 
github only.Contributors.
gitlab: RemoteReleaseMetadataAvailable on crate feature 
gitlab only.Contributors.
bitbucket: RemoteReleaseMetadataAvailable on crate feature 
bitbucket only.Contributors.
Implementations§
source§impl<'a> Release<'a>
 
impl<'a> Release<'a>
sourcepub fn update_github_metadata(
    &mut self,
    commits: Vec<Box<dyn RemoteCommit>>,
    pull_requests: Vec<Box<dyn RemotePullRequest>>
) -> Result<()>
 
pub fn update_github_metadata( &mut self, commits: Vec<Box<dyn RemoteCommit>>, pull_requests: Vec<Box<dyn RemotePullRequest>> ) -> Result<()>
Updates the remote metadata that is contained in the release.
This function takes two arguments:
- Commits: needed for associating the Git user with the GitHub username.
 - Pull requests: needed for generating the contributor list for the release.
 
source§impl<'a> Release<'a>
 
impl<'a> Release<'a>
sourcepub fn update_gitlab_metadata(
    &mut self,
    commits: Vec<Box<dyn RemoteCommit>>,
    pull_requests: Vec<Box<dyn RemotePullRequest>>
) -> Result<()>
 
pub fn update_gitlab_metadata( &mut self, commits: Vec<Box<dyn RemoteCommit>>, pull_requests: Vec<Box<dyn RemotePullRequest>> ) -> Result<()>
Updates the remote metadata that is contained in the release.
This function takes two arguments:
- Commits: needed for associating the Git user with the GitHub username.
 - Pull requests: needed for generating the contributor list for the release.
 
source§impl<'a> Release<'a>
 
impl<'a> Release<'a>
sourcepub fn update_bitbucket_metadata(
    &mut self,
    commits: Vec<Box<dyn RemoteCommit>>,
    pull_requests: Vec<Box<dyn RemotePullRequest>>
) -> Result<()>
 
pub fn update_bitbucket_metadata( &mut self, commits: Vec<Box<dyn RemoteCommit>>, pull_requests: Vec<Box<dyn RemotePullRequest>> ) -> Result<()>
Updates the remote metadata that is contained in the release.
This function takes two arguments:
- Commits: needed for associating the Git user with the GitHub username.
 - Pull requests: needed for generating the contributor list for the release.
 
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for Release<'a>
 
impl<'de, 'a> Deserialize<'de> for Release<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for Release<'a>
 
impl<'a> PartialEq for Release<'a>
impl<'a> StructuralPartialEq for Release<'a>
Auto Trait Implementations§
impl<'a> Freeze for Release<'a>
impl<'a> RefUnwindSafe for Release<'a>
impl<'a> Send for Release<'a>
impl<'a> Sync for Release<'a>
impl<'a> Unpin for Release<'a>
impl<'a> UnwindSafe for Release<'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> 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