pub struct ApiResUserGet {
pub user_id: i32,
pub email: String,
pub state: i32,
pub verified: i32,
pub role: String,
pub msg: String,
}
Expand description
ApiResUserGet
Response type for get_user
Return user’s db record
Usage
This type is the serialized output for the function:
get_user
(crate::requests::user::get_user::get_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 (1
- inactive)verified
-i32
- user email verified (0
- not-verified,1
- verified)role
-String
- user rolemsg
-String
- help message
Fields
user_id: i32
email: String
state: i32
verified: i32
role: String
msg: String
Trait Implementations
sourceimpl Clone for ApiResUserGet
impl Clone for ApiResUserGet
sourcefn clone(&self) -> ApiResUserGet
fn clone(&self) -> ApiResUserGet
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 ApiResUserGet
impl<'de> Deserialize<'de> for ApiResUserGet
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 ApiResUserGet
impl Serialize for ApiResUserGet
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserGet
impl Send for ApiResUserGet
impl Sync for ApiResUserGet
impl Unpin for ApiResUserGet
impl UnwindSafe for ApiResUserGet
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