pub struct UploadOptions<'a> {
pub data_type: Option<DataType>,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub sport_type: Option<&'a str>,
}Expand description
The options for a file upload.
Fields§
§data_type: Option<DataType>The data type of the file.
If not set, it is automatically determined from the file extension.
name: Option<&'a str>The name of the activity.
If not set, it is set automatically by Strava.
description: Option<&'a str>The description of the activity.
sport_type: Option<&'a str>The sport type of the activity.
If not set, it is automatically determined by Strava.
Trait Implementations§
Source§impl<'a> Clone for UploadOptions<'a>
impl<'a> Clone for UploadOptions<'a>
Source§fn clone(&self) -> UploadOptions<'a>
fn clone(&self) -> UploadOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for UploadOptions<'a>
impl<'a> Debug for UploadOptions<'a>
Source§impl<'a> Default for UploadOptions<'a>
impl<'a> Default for UploadOptions<'a>
Source§fn default() -> UploadOptions<'a>
fn default() -> UploadOptions<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for UploadOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for UploadOptions<'a>
impl<'a> RefUnwindSafe for UploadOptions<'a>
impl<'a> Send for UploadOptions<'a>
impl<'a> Sync for UploadOptions<'a>
impl<'a> Unpin for UploadOptions<'a>
impl<'a> UnwindSafe for UploadOptions<'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