pub struct ApiReqUserUpdateData {
pub user_id: i32,
pub data_id: i32,
pub filename: Option<String>,
pub data_type: Option<String>,
pub comments: Option<String>,
pub encoding: Option<String>,
pub sloc: Option<String>,
}
Expand description
ApiReqUserUpdateData
§Request Type For update_user_data
Handles updating a users_data
record in the db
This type is the deserialized input for:
update_user_data
(crate::requests::user::update_user_data::update_user_data]
§Usage
This type is constructed from the deserialized
bytes
(&[u8]
) argument
on the
update_user_data
function.
§Arguments
user_id
-i32
- user iddata_id
-i32
-users_data.id
record to updatefilename
-Option<String>
- change theusers_data.filename
fielddata_type
-Option<String>
- change theusers_data.data_type
fieldcomments
-Option<String>
- change theusers_data.comments
fieldencoding
-Option<String>
- change theusers_data.encoding
fieldsloc
-Option<String>
- change theusers_data.sloc
field
Fields§
§user_id: i32
§data_id: i32
§filename: Option<String>
§data_type: Option<String>
§comments: Option<String>
§encoding: Option<String>
§sloc: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for ApiReqUserUpdateData
impl Clone for ApiReqUserUpdateData
Source§fn clone(&self) -> ApiReqUserUpdateData
fn clone(&self) -> ApiReqUserUpdateData
Returns a copy 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 ApiReqUserUpdateData
impl<'de> Deserialize<'de> for ApiReqUserUpdateData
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 ApiReqUserUpdateData
impl RefUnwindSafe for ApiReqUserUpdateData
impl Send for ApiReqUserUpdateData
impl Sync for ApiReqUserUpdateData
impl Unpin for ApiReqUserUpdateData
impl UnwindSafe for ApiReqUserUpdateData
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