pub struct GithubAdapter { /* private fields */ }Implementations§
Source§impl GithubAdapter
impl GithubAdapter
pub fn new(client: GithubClient) -> Self
pub async fn download_asset<F>( &self, asset: &Asset, destination_path: &Path, dl_callback: &mut Option<F>, ) -> Result<()>
pub async fn get_release_by_tag(&self, slug: &str, tag: &str) -> Result<Release>
pub async fn get_latest_release(&self, slug: &str) -> Result<Release>
pub async fn get_releases( &self, slug: &str, per_page: Option<u32>, max_total: Option<u32>, ) -> Result<Vec<Release>>
Trait Implementations§
Source§impl Clone for GithubAdapter
impl Clone for GithubAdapter
Source§fn clone(&self) -> GithubAdapter
fn clone(&self) -> GithubAdapter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GithubAdapter
impl !RefUnwindSafe for GithubAdapter
impl Send for GithubAdapter
impl Sync for GithubAdapter
impl Unpin for GithubAdapter
impl UnsafeUnpin for GithubAdapter
impl !UnwindSafe for GithubAdapter
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