pub struct ApiResUserUploadData {
pub user_id: i32,
pub data_id: i32,
pub filename: String,
pub data_type: String,
pub size_in_bytes: i64,
pub comments: String,
pub encoding: String,
pub sloc: String,
pub msg: String,
}Expand description
ApiResUserUploadData
§Response type for upload_user_data
Return the created users_data db record
including the remote s3 location (sloc)
§Usage
This type is the serialized output for the function:
upload_user_data(crate::requests::user::upload_user_data::upload_user_data]
and contained within the
hyper Body
of the
hyper Response
sent back to the client.
user_id-i32-users.iddata_id-i32-users_data.idfilename-String- name of the filedata_type-String- data type for the filesize_in_bytes-i64- size of the file (number of bytes in the POST-eddata)comments-String- notes or descriptionencoding-String- encodingsloc-String- remote s3 locationmsg-String- help message
Fields§
§user_id: i32§data_id: i32§filename: String§data_type: String§size_in_bytes: i64§comments: String§encoding: String§sloc: String§msg: StringTrait Implementations§
Source§impl Clone for ApiResUserUploadData
impl Clone for ApiResUserUploadData
Source§fn clone(&self) -> ApiResUserUploadData
fn clone(&self) -> ApiResUserUploadData
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<'de> Deserialize<'de> for ApiResUserUploadData
impl<'de> Deserialize<'de> for ApiResUserUploadData
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 ApiResUserUploadData
impl RefUnwindSafe for ApiResUserUploadData
impl Send for ApiResUserUploadData
impl Sync for ApiResUserUploadData
impl Unpin for ApiResUserUploadData
impl UnsafeUnpin for ApiResUserUploadData
impl UnwindSafe for ApiResUserUploadData
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