pub struct Downloader { /* private fields */ }Expand description
Downloader client for Google Drive
Implementations§
Source§impl Downloader
impl Downloader
Sourcepub fn user_agent(self, ua: &str) -> Self
pub fn user_agent(self, ua: &str) -> Self
Set user agent
Sourcepub fn verify_ssl(self, verify: bool) -> Self
pub fn verify_ssl(self, verify: bool) -> Self
Set SSL verification
Set cookies path
Sourcepub fn build_client(&self) -> Client
pub fn build_client(&self) -> Client
Build the client with current settings
Sourcepub async fn download(
&self,
url: &str,
output: &Path,
options: DownloadOptions,
) -> Result<u64>
pub async fn download( &self, url: &str, output: &Path, options: DownloadOptions, ) -> Result<u64>
Download a file from URL
Sourcepub fn get_filename_from_disposition(disposition: &str) -> Option<String>
pub fn get_filename_from_disposition(disposition: &str) -> Option<String>
Get filename from Content-Disposition header
Trait Implementations§
Source§impl Clone for Downloader
impl Clone for Downloader
Source§fn clone(&self) -> Downloader
fn clone(&self) -> Downloader
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 moreAuto Trait Implementations§
impl Freeze for Downloader
impl RefUnwindSafe for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl UnsafeUnpin for Downloader
impl UnwindSafe for Downloader
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