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