pub struct User {Show 17 fields
pub handle: String,
pub email: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub country: Option<String>,
pub organization: Option<String>,
pub city: Option<String>,
pub contribution: i64,
pub rank: Option<String>,
pub max_rank: Option<String>,
pub rating: Option<i64>,
pub max_rating: Option<i64>,
pub last_online_time_seconds: u64,
pub registration_time_seconds: u64,
pub friend_of_count: u64,
pub avatar: String,
pub title_photo: String,
}
Expand description
A codeforces user.
Fields§
§handle: String
§email: Option<String>
§first_name: Option<String>
§last_name: Option<String>
§country: Option<String>
§organization: Option<String>
§city: Option<String>
§contribution: i64
§rank: Option<String>
§max_rank: Option<String>
§rating: Option<i64>
§max_rating: Option<i64>
§last_online_time_seconds: u64
§registration_time_seconds: u64
§friend_of_count: u64
§avatar: String
§title_photo: String
Implementations§
Source§impl User
API methods described on Codeforces API page.
impl User
API methods described on Codeforces API page.
Sourcepub async fn info<T>(client: &Client, handles: &[T]) -> Result<Vec<User>>
pub async fn info<T>(client: &Client, handles: &[T]) -> Result<Vec<User>>
Returns information about one or several users.
https://codeforces.com/apiHelp/methods#user.info
Sourcepub async fn rated_list(client: &Client, active_only: bool) -> Result<Vec<User>>
pub async fn rated_list(client: &Client, active_only: bool) -> Result<Vec<User>>
Returns the list users who have participated in at least one rated contest.
The return list of Users are sorted by decreasing order of rating.
https://codeforces.com/apiHelp/methods#user.ratedList
Source§impl User
APIs provided as methods.
impl User
APIs provided as methods.
Sourcepub async fn rating_changes(&self, client: &Client) -> Result<Vec<RatingChange>>
pub async fn rating_changes(&self, client: &Client) -> Result<Vec<RatingChange>>
Gets a list of rating changes of the current user.
Sourcepub async fn submissions(
&self,
client: &Client,
from: u64,
count: u64,
) -> Result<Vec<Submission>>
pub async fn submissions( &self, client: &Client, from: u64, count: u64, ) -> Result<Vec<Submission>>
Gets a list of most recent submissions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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