pub struct ApiResUserCreate {
pub user_id: i32,
pub email: String,
pub state: i32,
pub role: String,
pub token: String,
pub msg: String,
}
Expand description
ApiResUserCreate
§Response type for create_user
Return users’s db record with encrypted jwt
§Usage
This type is the serialized output for the function:
create_user
(crate::requests::user::create_user::create_user]
and contained within the
hyper Body
of the
hyper Response
sent back to the client.
§Arguments
user_id
-i32
- user idemail
-String
- user emailstate
-i32
- user state where (0
- active,1
- inactive)role
-String
- user roletoken
-String
- user jwtmsg
-String
- help message
Fields§
§user_id: i32
§email: String
§state: i32
§role: String
§token: String
§msg: String
Trait Implementations§
Source§impl Clone for ApiResUserCreate
impl Clone for ApiResUserCreate
Source§fn clone(&self) -> ApiResUserCreate
fn clone(&self) -> ApiResUserCreate
Returns a duplicate 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 Default for ApiResUserCreate
impl Default for ApiResUserCreate
Source§fn default() -> ApiResUserCreate
fn default() -> ApiResUserCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiResUserCreate
impl<'de> Deserialize<'de> for ApiResUserCreate
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 ApiResUserCreate
impl RefUnwindSafe for ApiResUserCreate
impl Send for ApiResUserCreate
impl Sync for ApiResUserCreate
impl Unpin for ApiResUserCreate
impl UnwindSafe for ApiResUserCreate
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