pub struct ApiResUserSearchData {
pub data: Vec<ModelUserData>,
pub msg: String,
}
Expand description
ApiResUserSearchData
§Response type for search_user_data
Contains matching users_data
records from the
db based off the POST-ed filters in the type:
ApiReqUserSearchData
§Usage
This type is the serialized output for the function:
search_user_data
(crate::requests::user::search_user_data::search_user_data]
and contained within the
hyper Body
of the
hyper Response
sent back to the client.
§Arguments
data
- Vec<ModelUserData
> - list of matchingusers_data
recordsmsg
-String
- help message
Fields§
§data: Vec<ModelUserData>
§msg: String
Trait Implementations§
Source§impl Clone for ApiResUserSearchData
impl Clone for ApiResUserSearchData
Source§fn clone(&self) -> ApiResUserSearchData
fn clone(&self) -> ApiResUserSearchData
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 ApiResUserSearchData
impl<'de> Deserialize<'de> for ApiResUserSearchData
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 ApiResUserSearchData
impl RefUnwindSafe for ApiResUserSearchData
impl Send for ApiResUserSearchData
impl Sync for ApiResUserSearchData
impl Unpin for ApiResUserSearchData
impl UnwindSafe for ApiResUserSearchData
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