pub struct ProfileResponse {Show 17 fields
pub id: i32,
pub account: String,
pub rank: Option<RankInfo>,
pub created_at: Option<String>,
pub username: Option<String>,
pub display_name: Option<String>,
pub pfp_url: Option<String>,
pub bio: Option<String>,
pub social_url: Option<String>,
pub trade_wallet_option: Option<String>,
pub embedded_account: Option<String>,
pub points: Option<f64>,
pub accumulative_points: Option<f64>,
pub enrolled_in_points_program: Option<bool>,
pub leaderboard_position: Option<i32>,
pub referral_data: Vec<ReferralDataInfo>,
pub referred_users_count: Option<i32>,
}Expand description
Response from GET /profiles/:account.
Fields§
§id: i32§account: String§rank: Option<RankInfo>§created_at: Option<String>§username: Option<String>§display_name: Option<String>§pfp_url: Option<String>§bio: Option<String>§trade_wallet_option: Option<String>§embedded_account: Option<String>§points: Option<f64>§accumulative_points: Option<f64>§enrolled_in_points_program: Option<bool>§leaderboard_position: Option<i32>§referral_data: Vec<ReferralDataInfo>§referred_users_count: Option<i32>Trait Implementations§
Source§impl Clone for ProfileResponse
impl Clone for ProfileResponse
Source§fn clone(&self) -> ProfileResponse
fn clone(&self) -> ProfileResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileResponse
impl Debug for ProfileResponse
Source§impl<'de> Deserialize<'de> for ProfileResponse
impl<'de> Deserialize<'de> for ProfileResponse
Source§fn 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
Auto Trait Implementations§
impl Freeze for ProfileResponse
impl RefUnwindSafe for ProfileResponse
impl Send for ProfileResponse
impl Sync for ProfileResponse
impl Unpin for ProfileResponse
impl UnsafeUnpin for ProfileResponse
impl UnwindSafe for ProfileResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more