pub struct UploadFileOptions {
pub data: UploadFileData,
pub media_type: String,
pub filename: Option<String>,
pub provider_options: Option<ProviderOptions>,
}Expand description
Options for one FilesModel::upload_file call.
Mirrors FilesV4UploadFileCallOptions.
Fields§
§data: UploadFileDataFile payload.
media_type: StringIANA media type (e.g. "application/pdf").
filename: Option<String>Optional filename forwarded to the provider.
provider_options: Option<ProviderOptions>Provider-specific options.
Trait Implementations§
Source§impl Clone for UploadFileOptions
impl Clone for UploadFileOptions
Source§fn clone(&self) -> UploadFileOptions
fn clone(&self) -> UploadFileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadFileOptions
impl Debug for UploadFileOptions
Source§impl<'de> Deserialize<'de> for UploadFileOptions
impl<'de> Deserialize<'de> for UploadFileOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UploadFileOptions
impl RefUnwindSafe for UploadFileOptions
impl Send for UploadFileOptions
impl Sync for UploadFileOptions
impl Unpin for UploadFileOptions
impl UnsafeUnpin for UploadFileOptions
impl UnwindSafe for UploadFileOptions
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