pub struct DownloadOptions { /* private fields */ }Expand description
Which file a download fetches: DatabaseApi::download_url_with,
DatabaseApi::download_with and DatabaseApi::download_bytes_with.
Implementations§
Source§impl DownloadOptions
impl DownloadOptions
pub fn new() -> Self
Sourcepub fn build(self, build: impl Into<String>) -> Self
pub fn build(self, build: impl Into<String>) -> Self
One build of the database, as a database.updated webhook names it
(20261105.0t53s5), so the file is the one whose sha256 the webhook
carries. Unset, or set empty, a download fetches the build that is live.
A build is kept 7 days; past that the call fails as
ErrorKind::BadRequest with the message
BUILD_GONE.
Trait Implementations§
Source§impl Clone for DownloadOptions
impl Clone for DownloadOptions
Source§impl Debug for DownloadOptions
impl Debug for DownloadOptions
Auto Trait Implementations§
impl Forget for DownloadOptions
impl Freeze for DownloadOptions
impl Move for DownloadOptions
impl RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl Sync for DownloadOptions
impl Unpin for DownloadOptions
impl UnsafeUnpin for DownloadOptions
impl UnwindSafe for DownloadOptions
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