Struct restapi::requests::user::search_users::ApiResUserSearch
source · [−]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
sourceimpl Clone for ApiResUserSearch
impl Clone for ApiResUserSearch
sourcefn clone(&self) -> ApiResUserSearch
fn clone(&self) -> ApiResUserSearch
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 ApiResUserSearch
impl<'de> Deserialize<'de> for ApiResUserSearch
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 ApiResUserSearch
impl Serialize for ApiResUserSearch
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserSearch
impl Send for ApiResUserSearch
impl Sync for ApiResUserSearch
impl Unpin for ApiResUserSearch
impl UnwindSafe for ApiResUserSearch
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