Struct fractal_api::v1::types::Profile
[−]
[src]
pub struct Profile { // some fields omitted }
Struct that holds all the profile information for the user.
Methods
impl Profile
[src]
fn get_user_id(&self) -> u64
Gets the user's ID.
fn get_display_name(&self) -> &str
Gets the display name of the user.
fn get_first_name(&self) -> Option<&str>
Gets the first name of the user.
fn get_last_name(&self) -> Option<&str>
Gets the last name of the user.
fn get_image_url(&self) -> Option<&str>
Gets the image of the user.
fn get_age(&self) -> Option<u8>
Gets the age of the user.
fn get_address(&self) -> Option<&str>
Gets the address of the user.
fn get_trust_score(&self) -> i8
Gets the trust score of the user.
Trait Implementations
impl Clone for Profile
[src]
fn clone(&self) -> Profile
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 Debug for Profile
[src]
impl FromDTO<ProfileDTO> for Profile
[src]
fn from_dto(dto: ProfileDTO) -> StdResult<Profile, FromDTOError>
the from dto wrapper