pub struct Release<'a> {
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 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.
extra: Option<Value>
Arbitrary data to be used with the --from-context
CLI option.
github: RemoteReleaseMetadata
Available on crate feature
github
only.Contributors.
gitlab: RemoteReleaseMetadata
Available on crate feature
gitlab
only.Contributors.
gitea: RemoteReleaseMetadata
Available on crate feature
gitea
only.Contributors.
bitbucket: RemoteReleaseMetadata
Available 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_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>,
Deserialize this value from the given Serde deserializer. Read more
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> 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