Struct restapi::requests::user::update_user::ApiReqUserUpdate
source · [−]pub struct ApiReqUserUpdate {
pub user_id: i32,
pub email: Option<String>,
pub password: Option<String>,
pub state: Option<i32>,
pub verified: Option<i32>,
pub role: Option<String>,
}
Expand description
ApiReqUserUpdate
Request Type For update_user
Handles updating a users
record in the db
This type is the deserialized input for:
update_user
(crate::requests::user::update_user::update_user]
Usage
This type is constructed from the deserialized
bytes
(&[u8]
) argument
on the
update_user
function.
Arguments
user_id
-i32
- user idemail
-Option<String>
- change theusers.email
fieldpassword
-Option<String>
- change theusers.password
fieldstate
-Option<i32>
- change theusers.state
fieldverified
-Option<i32>
- change theusers.verified
fieldrole
-Option<String>
- change theusers.role
field
Fields
user_id: i32
email: Option<String>
password: Option<String>
state: Option<i32>
verified: Option<i32>
role: Option<String>
Implementations
sourceimpl ApiReqUserUpdate
impl ApiReqUserUpdate
implementation for wrapping complex sql statement creation
Trait Implementations
sourceimpl Clone for ApiReqUserUpdate
impl Clone for ApiReqUserUpdate
sourcefn clone(&self) -> ApiReqUserUpdate
fn clone(&self) -> ApiReqUserUpdate
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 ApiReqUserUpdate
impl<'de> Deserialize<'de> for ApiReqUserUpdate
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 ApiReqUserUpdate
impl Serialize for ApiReqUserUpdate
Auto Trait Implementations
impl RefUnwindSafe for ApiReqUserUpdate
impl Send for ApiReqUserUpdate
impl Sync for ApiReqUserUpdate
impl Unpin for ApiReqUserUpdate
impl UnwindSafe for ApiReqUserUpdate
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