Struct restapi::requests::user::update_user_data::ApiResUserUpdateData
source · [−]pub struct ApiResUserUpdateData {
pub data: ModelUserData,
pub msg: String,
}
Expand description
ApiResUserUpdateData
Response type for update_user_data
Return user’s db record
Usage
This type is the serialized output for the function:
update_user_data
(crate::requests::user::update_user_data::update_user_data]
and contained within the
hyper Body
of the
hyper Response
sent back to the client.
Arguments
data
-ModelUserData
- the newly-updated record from theusers_data
db tablemsg
-String
- help message
Fields
data: ModelUserData
msg: String
Trait Implementations
sourceimpl Clone for ApiResUserUpdateData
impl Clone for ApiResUserUpdateData
sourcefn clone(&self) -> ApiResUserUpdateData
fn clone(&self) -> ApiResUserUpdateData
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 ApiResUserUpdateData
impl<'de> Deserialize<'de> for ApiResUserUpdateData
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 ApiResUserUpdateData
impl Serialize for ApiResUserUpdateData
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserUpdateData
impl Send for ApiResUserUpdateData
impl Sync for ApiResUserUpdateData
impl Unpin for ApiResUserUpdateData
impl UnwindSafe for ApiResUserUpdateData
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