pub struct Release<'a> {Show 14 fields
pub version: Option<String>,
pub message: Option<String>,
pub commits: Vec<Commit<'a>>,
pub commit_id: Option<String>,
pub timestamp: i64,
pub previous: Option<Box<Release<'a>>>,
pub repository: Option<String>,
pub commit_range: Option<Range>,
pub submodule_commits: HashMap<String, Vec<Commit<'a>>>,
pub extra: Option<Value>,
pub github: RemoteReleaseMetadata,
pub gitlab: RemoteReleaseMetadata,
pub gitea: RemoteReleaseMetadata,
pub bitbucket: RemoteReleaseMetadata,
}
Expand description
Representation of a release.
Fields§
§version: Option<String>
Release version, git tag.
message: Option<String>
git tag’s message.
commits: Vec<Commit<'a>>
Commits made for the release.
commit_id: Option<String>
Commit ID of the tag.
timestamp: i64
Timestamp of the release in seconds, from epoch.
previous: Option<Box<Release<'a>>>
Previous release.
repository: Option<String>
Repository path.
commit_range: Option<Range>
Commit range.
submodule_commits: HashMap<String, Vec<Commit<'a>>>
Submodule commits.
Maps submodule path to a list of commits.
extra: Option<Value>
Arbitrary data to be used with the --from-context
CLI option.
github: RemoteReleaseMetadata
github
only.Contributors.
gitlab: RemoteReleaseMetadata
gitlab
only.Contributors.
gitea: RemoteReleaseMetadata
gitea
only.Contributors.
bitbucket: RemoteReleaseMetadata
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_gitea_metadata(
&mut self,
commits: Vec<Box<dyn RemoteCommit>>,
pull_requests: Vec<Box<dyn RemotePullRequest>>,
) -> Result<()>
pub fn update_gitea_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>,
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
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>
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>
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