pub struct ReleaseStore { /* private fields */ }Expand description
Release storage.
Implementations§
Source§impl ReleaseStore
impl ReleaseStore
Sourcepub fn create(
&self,
repo_key: String,
tag_name: String,
target_commitish: String,
author: String,
) -> Result<Release>
pub fn create( &self, repo_key: String, tag_name: String, target_commitish: String, author: String, ) -> Result<Release>
Create a new release.
Sourcepub fn get_by_tag(&self, repo_key: &str, tag_name: &str) -> Option<Release>
pub fn get_by_tag(&self, repo_key: &str, tag_name: &str) -> Option<Release>
Get a release by tag.
Sourcepub fn get_latest(&self, repo_key: &str) -> Option<Release>
pub fn get_latest(&self, repo_key: &str) -> Option<Release>
Get the latest release for a repository.
Sourcepub fn add_asset(
&self,
release_id: ReleaseId,
name: String,
content_type: String,
content: Vec<u8>,
uploader: String,
) -> Result<ReleaseAsset>
pub fn add_asset( &self, release_id: ReleaseId, name: String, content_type: String, content: Vec<u8>, uploader: String, ) -> Result<ReleaseAsset>
Add an asset to a release.
Sourcepub fn delete_asset(
&self,
release_id: ReleaseId,
asset_id: AssetId,
) -> Result<ReleaseAsset>
pub fn delete_asset( &self, release_id: ReleaseId, asset_id: AssetId, ) -> Result<ReleaseAsset>
Delete an asset.
Trait Implementations§
Source§impl Clone for ReleaseStore
impl Clone for ReleaseStore
Source§fn clone(&self) -> ReleaseStore
fn clone(&self) -> ReleaseStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReleaseStore
impl Debug for ReleaseStore
Auto Trait Implementations§
impl !RefUnwindSafe for ReleaseStore
impl !UnwindSafe for ReleaseStore
impl Freeze for ReleaseStore
impl Send for ReleaseStore
impl Sync for ReleaseStore
impl Unpin for ReleaseStore
impl UnsafeUnpin for ReleaseStore
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