pub struct ApiReqUserUploadData {
pub data: Vec<u8>,
}
Expand description
ApiReqUserUploadData
§Request Type For upload_user_data
Handles creating a users_data
record in the db and
uploading the POST-ed file contents
to a remote, db-tracked s3 location (sloc
).
This type contains the uploaded file in a Vec<u8>
from the contents in a local file.
This type is the deserialized input for:
upload_user_data
(crate::requests::user::upload_user_data::upload_user_data]
§Usage
This type is constructed from the deserialized
bytes
(&[u8]
) argument
on the
upload_user_data
function.
§Arguments
data
-Vec<u8>
- contents from the POST-ed file as a vector of bytes
Fields§
§data: Vec<u8>
Trait Implementations§
Source§impl Clone for ApiReqUserUploadData
impl Clone for ApiReqUserUploadData
Source§fn clone(&self) -> ApiReqUserUploadData
fn clone(&self) -> ApiReqUserUploadData
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<'de> Deserialize<'de> for ApiReqUserUploadData
impl<'de> Deserialize<'de> for ApiReqUserUploadData
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 ApiReqUserUploadData
impl RefUnwindSafe for ApiReqUserUploadData
impl Send for ApiReqUserUploadData
impl Sync for ApiReqUserUploadData
impl Unpin for ApiReqUserUploadData
impl UnwindSafe for ApiReqUserUploadData
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