pub enum UploadFileData {
Data {
data: FileBytes,
},
Text {
text: String,
},
}Expand description
Payload variants accepted by FilesModel::upload_file.
Mirrors SharedV4FileDataData | SharedV4FileDataText (the V4 spec
excludes URL / reference inputs because the call would have nothing
to upload).
Variants§
Trait Implementations§
Source§impl Clone for UploadFileData
impl Clone for UploadFileData
Source§fn clone(&self) -> UploadFileData
fn clone(&self) -> UploadFileData
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 UploadFileData
impl Debug for UploadFileData
Source§impl<'de> Deserialize<'de> for UploadFileData
impl<'de> Deserialize<'de> for UploadFileData
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
Source§impl PartialEq for UploadFileData
impl PartialEq for UploadFileData
Source§fn eq(&self, other: &UploadFileData) -> bool
fn eq(&self, other: &UploadFileData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UploadFileData
impl Serialize for UploadFileData
impl StructuralPartialEq for UploadFileData
Auto Trait Implementations§
impl Freeze for UploadFileData
impl RefUnwindSafe for UploadFileData
impl Send for UploadFileData
impl Sync for UploadFileData
impl Unpin for UploadFileData
impl UnsafeUnpin for UploadFileData
impl UnwindSafe for UploadFileData
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