pub struct Release {
api: HttpApi,
repository: RepoRef,
}Expand description
GitHub release and pull-request operations for the release CLI.
Fields§
§api: HttpApi§repository: RepoRefImplementations§
Trait Implementations§
Source§impl ForgeProposal for Release
impl ForgeProposal for Release
Source§impl ForgeRelease for Release
impl ForgeRelease for Release
Source§type Error = ForgeError
type Error = ForgeError
The failure of a forge release call.
Source§async fn delete_asset(
&self,
_release_id: u64,
asset_id: u64,
) -> Result<(), Self::Error>
async fn delete_asset( &self, _release_id: u64, asset_id: u64, ) -> Result<(), Self::Error>
Remove one asset from a draft release.
Source§async fn release_by_tag(
&self,
tag: &str,
) -> Result<Option<RemoteRelease>, Self::Error>
async fn release_by_tag( &self, tag: &str, ) -> Result<Option<RemoteRelease>, Self::Error>
The release for
tag, draft or published, if one exists.Source§async fn create_draft(
&self,
tag: &str,
target_commit: &str,
title: &str,
notes: &str,
) -> Result<u64, Self::Error>
async fn create_draft( &self, tag: &str, target_commit: &str, title: &str, notes: &str, ) -> Result<u64, Self::Error>
Create a hidden release on
tag and return its identifier.Source§async fn assets(&self, release_id: u64) -> Result<Vec<RemoteAsset>, Self::Error>
async fn assets(&self, release_id: u64) -> Result<Vec<RemoteAsset>, Self::Error>
Assets already attached to the release.
Source§async fn upload(
&self,
release_id: u64,
filename: &str,
bytes: &[u8],
) -> Result<(), Self::Error>
async fn upload( &self, release_id: u64, filename: &str, bytes: &[u8], ) -> Result<(), Self::Error>
Attach one file to the release.
Source§async fn asset_bytes(&self, asset: &RemoteAsset) -> Result<Vec<u8>, Self::Error>
async fn asset_bytes(&self, asset: &RemoteAsset) -> Result<Vec<u8>, Self::Error>
Download an attached asset for verification.
Auto Trait Implementations§
impl !RefUnwindSafe for Release
impl !UnwindSafe for Release
impl Freeze for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnsafeUnpin for Release
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