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 data.

Username.

Email of the user.

First name of the user.

Last name of the user.

Age of the user.

Country of the user.

State of the user.

City of the user.

Phone of the user.

Check for all or any?

Include the current user, if logged in.

Include friends of the current user, if logged in.

Trait Implementations

impl Clone for SearchUserDTO
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for SearchUserDTO
[src]

Serialize a value using an Encoder.

impl Decodable for SearchUserDTO
[src]

Deserialize a value using a Decoder.

impl DTO for SearchUserDTO
[src]