pub struct ModelUserData {
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 created_at: String,
pub updated_at: String,
pub msg: String,
}
Expand description
ModelUserData
Representation in the db for a user’s s3-uploaded file
Each user can store many users_data
record(s)
DB table
users_data
Arguments
user_id
-i32
- user id in the dbdata_id
-i32
- users_data.id in the dbfilename
-String
- data filenamedata_type
-String
- v2 - data type for restricting upload typessize_in_bytes
-i64
- size of the uploaded filecomments
-String
- HTTP header can add comments to the fileencoding
-String
- file encodingsloc
-String
- full s3 location pathcreated_at
-String
- original upload timeupdated_at
-String
- most recent update timemsg
-String
- message for helping debug from the client
Fields
user_id: i32
data_id: i32
filename: String
data_type: String
size_in_bytes: i64
comments: String
encoding: String
sloc: String
created_at: String
updated_at: String
msg: String
Trait Implementations
sourceimpl Clone for ModelUserData
impl Clone for ModelUserData
sourcefn clone(&self) -> ModelUserData
fn clone(&self) -> ModelUserData
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 Default for ModelUserData
impl Default for ModelUserData
sourcefn default() -> ModelUserData
fn default() -> ModelUserData
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ModelUserData
impl<'de> Deserialize<'de> for ModelUserData
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 ModelUserData
impl Serialize for ModelUserData
Auto Trait Implementations
impl RefUnwindSafe for ModelUserData
impl Send for ModelUserData
impl Sync for ModelUserData
impl Unpin for ModelUserData
impl UnwindSafe for ModelUserData
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