Struct fractal_dto::v1::user::SearchUserDTO
[−]
[src]
pub struct SearchUserDTO {
pub random: Option<String>,
pub username: Option<String>,
pub email: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub age: Option<u8>,
pub country: Option<String>,
pub state: Option<String>,
pub city: Option<String>,
pub phone: Option<String>,
pub all: bool,
pub include_me: bool,
pub include_friends: bool,
}Struct used to search a user.
Fields
random: Option<String>
Random data.
username: Option<String>
Username.
email: Option<String>
Email of the user.
first_name: Option<String>
First name of the user.
last_name: Option<String>
Last name of the user.
age: Option<u8>
Age of the user.
country: Option<String>
Country of the user.
state: Option<String>
State of the user.
city: Option<String>
City of the user.
phone: Option<String>
Phone of the user.
all: bool
Check for all or any?
include_me: bool
Include the current user, if logged in.
include_friends: bool
Include friends of the current user, if logged in.
Trait Implementations
impl Clone for SearchUserDTO[src]
fn clone(&self) -> SearchUserDTO
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Encodable for SearchUserDTO[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder.
impl Decodable for SearchUserDTO[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<SearchUserDTO, __D::Error>
Deserialize a value using a Decoder.