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§
Source§impl Clone for ApiResUserUpdateData
impl Clone for ApiResUserUpdateData
Source§fn clone(&self) -> ApiResUserUpdateData
fn clone(&self) -> ApiResUserUpdateData
Returns a copy 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<'de> Deserialize<'de> for ApiResUserUpdateData
impl<'de> Deserialize<'de> for ApiResUserUpdateData
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 ApiResUserUpdateData
impl RefUnwindSafe for ApiResUserUpdateData
impl Send for ApiResUserUpdateData
impl Sync for ApiResUserUpdateData
impl Unpin for ApiResUserUpdateData
impl UnwindSafe for ApiResUserUpdateData
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