pub struct FileUpload {
pub placeholder: String,
pub filename: String,
pub data: Vec<u8>,
pub mime: Option<String>,
}Expand description
File bytes referenced by a FILE("placeholder") expression in SQL.
Fields§
§placeholder: StringPlaceholder name used in SQL, without quotes (e.g. "upload" → upload).
filename: StringOriginal filename sent to the server.
data: Vec<u8>Raw file content.
mime: Option<String>Optional MIME type override.
Implementations§
Trait Implementations§
Source§impl Clone for FileUpload
impl Clone for FileUpload
Source§fn clone(&self) -> FileUpload
fn clone(&self) -> FileUpload
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 FileUpload
impl Debug for FileUpload
impl Eq for FileUpload
Source§impl PartialEq for FileUpload
impl PartialEq for FileUpload
Source§fn eq(&self, other: &FileUpload) -> bool
fn eq(&self, other: &FileUpload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileUpload
Auto Trait Implementations§
impl Freeze for FileUpload
impl RefUnwindSafe for FileUpload
impl Send for FileUpload
impl Sync for FileUpload
impl Unpin for FileUpload
impl UnsafeUnpin for FileUpload
impl UnwindSafe for FileUpload
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.