Struct restapi::requests::user::delete_user::ApiResUserDelete
source · [−]pub struct ApiResUserDelete {
pub user_id: i32,
pub email: String,
pub state: i32,
pub verified: i32,
pub role: String,
pub msg: String,
}
Expand description
ApiResUserDelete
Response type for delete_user
Notify the client that: the user’s account has been deleted (deactivated for recovery purposes)
Usage
This type is the serialized output for the function:
delete_user
(crate::requests::user::delete_user::delete_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 ApiResUserDelete
impl Clone for ApiResUserDelete
sourcefn clone(&self) -> ApiResUserDelete
fn clone(&self) -> ApiResUserDelete
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 ApiResUserDelete
impl<'de> Deserialize<'de> for ApiResUserDelete
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 ApiResUserDelete
impl Serialize for ApiResUserDelete
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserDelete
impl Send for ApiResUserDelete
impl Sync for ApiResUserDelete
impl Unpin for ApiResUserDelete
impl UnwindSafe for ApiResUserDelete
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