Struct restapi::requests::user::upload_user_data::ApiResUserUploadData
source · [−]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.id
data_id
-i32
-users_data.id
filename
-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: String
Trait Implementations
sourceimpl Clone for ApiResUserUploadData
impl Clone for ApiResUserUploadData
sourcefn clone(&self) -> ApiResUserUploadData
fn clone(&self) -> ApiResUserUploadData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for ApiResUserUploadData
impl<'de> Deserialize<'de> for ApiResUserUploadData
sourcefn 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
sourceimpl Serialize for ApiResUserUploadData
impl Serialize for ApiResUserUploadData
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserUploadData
impl Send for ApiResUserUploadData
impl Sync for ApiResUserUploadData
impl Unpin for ApiResUserUploadData
impl UnwindSafe for ApiResUserUploadData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more