Struct cloud_storage::DownloadOptions
source · pub struct DownloadOptions { /* private fields */ }
Expand description
A set of parameters that can be used to customise signed urls.
Implementations§
source§impl DownloadOptions
impl DownloadOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new instance of DownloadOptions
. Equivalent to DownloadOptions::default()
.
Example
use cloud_storage::DownloadOptions;
let opts = DownloadOptions::new();
sourcepub fn content_disposition(self, content_disposition: &str) -> Self
pub fn content_disposition(self, content_disposition: &str) -> Self
Create a new instance of DownloadOptions
. Equivalent to DownloadOptions::default()
.
Example
use cloud_storage::DownloadOptions;
let opts = DownloadOptions::new()
.content_disposition("attachment");
Trait Implementations§
source§impl Default for DownloadOptions
impl Default for DownloadOptions
source§fn default() -> DownloadOptions
fn default() -> DownloadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl Sync for DownloadOptions
impl Unpin 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