pub struct ReleaseHandler<P: ReleasePlatform> { /* private fields */ }Implementations§
Source§impl<P: ReleasePlatform> ReleaseHandler<P>
impl<P: ReleasePlatform> ReleaseHandler<P>
pub fn new() -> Self
pub async fn fetch_releases<R>(
&self,
project: &str,
) -> Result<Vec<R>, PlatformError>where
R: for<'de> Deserialize<'de>,
pub async fn filter_releases<R, A>( &self, releases: &[R], options: &PlatformDownloadOptions, ) -> Result<Vec<A>, PlatformError>
pub async fn download<A: ReleaseAsset>( &self, asset: &A, options: PlatformDownloadOptions, ) -> Result<String, PlatformError>
Trait Implementations§
Source§impl<P: Default + ReleasePlatform> Default for ReleaseHandler<P>
impl<P: Default + ReleasePlatform> Default for ReleaseHandler<P>
Source§fn default() -> ReleaseHandler<P>
fn default() -> ReleaseHandler<P>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<P> Freeze for ReleaseHandler<P>
impl<P> !RefUnwindSafe for ReleaseHandler<P>
impl<P> Send for ReleaseHandler<P>where
P: Send,
impl<P> Sync for ReleaseHandler<P>where
P: Sync,
impl<P> Unpin for ReleaseHandler<P>where
P: Unpin,
impl<P> !UnwindSafe for ReleaseHandler<P>
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