Struct ffsend_api::action::params::ParamsData
source · pub struct ParamsData { /* private fields */ }
Expand description
The parameters data object, that is sent to the server.
Implementations
sourceimpl ParamsData
impl ParamsData
sourcepub fn from(download_limit: Option<u8>) -> Self
pub fn from(download_limit: Option<u8>) -> Self
Create a new parameters data object, with the given parameters.
sourcepub fn set_download_limit(
&mut self,
download_limit: Option<u8>
) -> Result<(), ParamsDataError>
pub fn set_download_limit(
&mut self,
download_limit: Option<u8>
) -> Result<(), ParamsDataError>
Set the maximum number of allowed downloads, after which the file will be removed.
None
may be given, to keep this parameter as is.
An error may be returned if the download value is out of the allowed
bound. These bounds are fixed and enforced by the server.
See PARAMS_DOWNLOAD_MIN
and PARAMS_DOWNLOAD_MAX
.
Trait Implementations
sourceimpl Clone for ParamsData
impl Clone for ParamsData
sourcefn clone(&self) -> ParamsData
fn clone(&self) -> ParamsData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParamsData
impl Debug for ParamsData
sourceimpl Default for ParamsData
impl Default for ParamsData
sourcefn default() -> ParamsData
fn default() -> ParamsData
Returns the “default value” for a type. Read more
sourceimpl Serialize for ParamsData
impl Serialize for ParamsData
Auto Trait Implementations
impl RefUnwindSafe for ParamsData
impl Send for ParamsData
impl Sync for ParamsData
impl Unpin for ParamsData
impl UnwindSafe for ParamsData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more