pub struct GetFileLinkParams<'a> { /* private fields */ }
Expand description
Parameters for retrieving a file link, including options for controlling the download behavior and file metadata.
Implementations§
Source§impl<'a> GetFileLinkParams<'a>
impl<'a> GetFileLinkParams<'a>
Sourcepub fn set_force_download(&mut self, value: bool)
pub fn set_force_download(&mut self, value: bool)
Sourcepub fn with_force_download(self, value: bool) -> Self
pub fn with_force_download(self, value: bool) -> Self
Sets the force_download
flag and returns the updated GetFileLinkParams
object.
§Arguments
value
- Boolean indicating whether to force the download.
Sourcepub fn set_content_type(&mut self, value: impl Into<Cow<'a, str>>)
pub fn set_content_type(&mut self, value: impl Into<Cow<'a, str>>)
Sourcepub fn with_content_type(self, value: impl Into<Cow<'a, str>>) -> Self
pub fn with_content_type(self, value: impl Into<Cow<'a, str>>) -> Self
Sets the content type and returns the updated GetFileLinkParams
object.
§Arguments
value
- Content type (e.g., “application/pdf”).
Sourcepub fn set_max_speed(&mut self, value: u64)
pub fn set_max_speed(&mut self, value: u64)
Sourcepub fn with_max_speed(self, value: u64) -> Self
pub fn with_max_speed(self, value: u64) -> Self
Sets the maximum download speed and returns the updated GetFileLinkParams
object.
§Arguments
value
- Maximum speed in bytes per second.
Sourcepub fn set_skip_filename(&mut self, value: bool)
pub fn set_skip_filename(&mut self, value: bool)
Sets the skip_filename
flag.
§Arguments
value
- Boolean indicating whether to skip the filename in the URL.
Sourcepub fn with_skip_filename(self, value: bool) -> Self
pub fn with_skip_filename(self, value: bool) -> Self
Sets the skip_filename
flag and returns the updated GetFileLinkParams
object.
§Arguments
value
- Boolean indicating whether to skip the filename in the URL.
Trait Implementations§
Source§impl<'a> Debug for GetFileLinkParams<'a>
impl<'a> Debug for GetFileLinkParams<'a>
Source§impl<'a> Default for GetFileLinkParams<'a>
impl<'a> Default for GetFileLinkParams<'a>
Source§fn default() -> GetFileLinkParams<'a>
fn default() -> GetFileLinkParams<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for GetFileLinkParams<'a>
impl<'a> RefUnwindSafe for GetFileLinkParams<'a>
impl<'a> Send for GetFileLinkParams<'a>
impl<'a> Sync for GetFileLinkParams<'a>
impl<'a> Unpin for GetFileLinkParams<'a>
impl<'a> UnwindSafe for GetFileLinkParams<'a>
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