Struct fractal_dto::v1::user::ProfileDTO [−][src]
pub struct ProfileDTO { pub user_id: u64, pub display_name: String, pub first_name: Option<String>, pub last_name: Option<String>, pub image_url: Option<String>, pub age: Option<u8>, pub address: Option<String>, pub trust_score: i8, }
Struct for profiles
Fields
user_id: u64
User's ID.
display_name: String
Display name of the user.
first_name: Option<String>
First name of the user.
last_name: Option<String>
Last name of the user.
image_url: Option<String>
Link to the user's profile image.
age: Option<u8>
Age of the user.
address: Option<String>
Address of the user.
trust_score: i8
Trust score of the user.
Trait Implementations
impl Debug for ProfileDTO
[src]
impl Debug for ProfileDTO
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ProfileDTO
[src]
impl Clone for ProfileDTO
fn clone(&self) -> ProfileDTO
[src]
fn clone(&self) -> ProfileDTO
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for ProfileDTO
[src]
impl Encodable for ProfileDTO
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Decodable for ProfileDTO
[src]
impl Decodable for ProfileDTO
fn decode<__D: Decoder>(d: &mut __D) -> Result<ProfileDTO, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<ProfileDTO, __D::Error>
Deserialize a value using a Decoder
.
impl DTO for ProfileDTO
[src]
impl DTO for ProfileDTO
Auto Trait Implementations
impl Send for ProfileDTO
impl Send for ProfileDTO
impl Sync for ProfileDTO
impl Sync for ProfileDTO