[−][src]Struct codeforces::Contest
A single contest.
Fields
id: u64
name: String
contest_type: ContestType
phase: ContestPhase
frozen: bool
duration_seconds: u64
start_time_seconds: Option<u64>
relative_time_seconds: Option<i64>
prepared_by: Option<String>
website_url: Option<String>
description: Option<String>
difficulty: Option<u8>
kind: Option<String>
icpc_region: Option<String>
country: Option<String>
city: Option<String>
season: Option<String>
Implementations
impl Contest
[src]
impl Contest
[src]
API methods described on Codeforces API page.
pub async fn list<'_>(
client: &'_ Client,
with_gym: bool
) -> Result<Vec<Contest>>
[src]
client: &'_ Client,
with_gym: bool
) -> Result<Vec<Contest>>
Gets a list of all contests.
pub async fn standings<'_>(
client: &'_ Client,
contest_id: u64,
opts: impl FnOnce(&mut ContestRankingsBuilder) -> &mut ContestRankingsBuilder
) -> Result<(Contest, Vec<Problem>, Vec<RanklistRow>)>
[src]
client: &'_ Client,
contest_id: u64,
opts: impl FnOnce(&mut ContestRankingsBuilder) -> &mut ContestRankingsBuilder
) -> Result<(Contest, Vec<Problem>, Vec<RanklistRow>)>
Gets the standings of a contest.
https://codeforces.com/apiHelp/methods#contest.standings
impl Contest
[src]
APIs provided as methods.
pub async fn get_standings<'_, '_>(
&'_ self,
client: &'_ Client,
opts: impl FnOnce(&mut ContestRankingsBuilder) -> &mut ContestRankingsBuilder
) -> Result<(Vec<Problem>, Vec<RanklistRow>)>
[src]
&'_ self,
client: &'_ Client,
opts: impl FnOnce(&mut ContestRankingsBuilder) -> &mut ContestRankingsBuilder
) -> Result<(Vec<Problem>, Vec<RanklistRow>)>
Get the standings of the current contest.
Trait Implementations
impl Clone for Contest
[src]
impl Debug for Contest
[src]
impl<'de> Deserialize<'de> for Contest
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Contest
impl Send for Contest
impl Sync for Contest
impl Unpin for Contest
impl UnwindSafe for Contest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,