Struct restapi::requests::user::verify_user::ApiResUserVerify
source · [−]pub struct ApiResUserVerify {
pub user_id: i32,
pub email: String,
pub state: i32,
pub verified: i32,
pub role: String,
pub msg: String,
}
Expand description
ApiResUserVerify
Response type for verify_user
Return user’s db record
Usage
This type is the serialized output for the function:
verify_user
(crate::requests::user::verify_user::verify_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 (0
- active,1
- inactive)verified
-i32
- user email 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 ApiResUserVerify
impl Clone for ApiResUserVerify
sourcefn clone(&self) -> ApiResUserVerify
fn clone(&self) -> ApiResUserVerify
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 ApiResUserVerify
impl<'de> Deserialize<'de> for ApiResUserVerify
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 ApiResUserVerify
impl Serialize for ApiResUserVerify
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserVerify
impl Send for ApiResUserVerify
impl Sync for ApiResUserVerify
impl Unpin for ApiResUserVerify
impl UnwindSafe for ApiResUserVerify
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