pub struct WebScraperAdapter { /* private fields */ }Implementations§
Source§impl WebScraperAdapter
impl WebScraperAdapter
pub fn new(client: HttpClient) -> 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_latest_release_if_modified_since( &self, slug: &str, last_upgraded: Option<DateTime<Utc>>, ) -> Result<Option<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 WebScraperAdapter
impl Clone for WebScraperAdapter
Source§fn clone(&self) -> WebScraperAdapter
fn clone(&self) -> WebScraperAdapter
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 WebScraperAdapter
impl !RefUnwindSafe for WebScraperAdapter
impl Send for WebScraperAdapter
impl Sync for WebScraperAdapter
impl Unpin for WebScraperAdapter
impl UnsafeUnpin for WebScraperAdapter
impl !UnwindSafe for WebScraperAdapter
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