pub struct FileUploadInput {
pub name: Option<String>,
pub filename: Option<String>,
pub content_type: Option<String>,
pub data: Vec<u8>,
}Expand description
File input schema used both for multipart-form uploads (in which case the name is mapped to column names) and JSON where the column name is extracted from the corresponding key of the parent object.
Fields§
§name: Option<String>The name of the form’s file control.
filename: Option<String>The file’s file name.
content_type: Option<String>The file’s content type.
data: Vec<u8>The file’s data
Implementations§
Trait Implementations§
Source§impl Clone for FileUploadInput
impl Clone for FileUploadInput
Source§fn clone(&self) -> FileUploadInput
fn clone(&self) -> FileUploadInput
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 FileUploadInput
impl Debug for FileUploadInput
Source§impl Default for FileUploadInput
impl Default for FileUploadInput
Source§fn default() -> FileUploadInput
fn default() -> FileUploadInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileUploadInput
impl<'de> Deserialize<'de> for FileUploadInput
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 FileUploadInput
impl PartialEq for FileUploadInput
Source§impl Serialize for FileUploadInput
impl Serialize for FileUploadInput
impl StructuralPartialEq for FileUploadInput
Auto Trait Implementations§
impl Freeze for FileUploadInput
impl RefUnwindSafe for FileUploadInput
impl Send for FileUploadInput
impl Sync for FileUploadInput
impl Unpin for FileUploadInput
impl UnsafeUnpin for FileUploadInput
impl UnwindSafe for FileUploadInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more