Struct codeforces_api::responses::CFProblem [−][src]
Struct representing a Codeforces problem.
Fields
contest_id: Option<i64>
problemset_name: Option<String>
index: Option<String>
name: String
problem_type: CFProblemType
points: Option<f64>
rating: Option<i64>
input_testcases: Option<Vec<String>>
Implementations
impl CFProblem
[src]
pub fn fetch_testcases(&mut self) -> Result<Vec<String>, Error>
[src]
Extra method which allows a user to fetch testcases directly from a
CFProblem
.
Returns Vec of Strings where each String is a separate input testcase for the problem. Currently, the 'expected output' provided by Codeforces is not returned. However, in future this could be implemented relatively easily.
Uses fetch_testcases_for_problem
under the hood.
Trait Implementations
impl Clone for CFProblem
[src]
impl Debug for CFProblem
[src]
impl<'de> Deserialize<'de> for CFProblem
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for CFProblem
[src]
impl PartialEq<CFProblem> for CFProblem
[src]
impl Serialize for CFProblem
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for CFProblem
[src]
Auto Trait Implementations
impl RefUnwindSafe for CFProblem
[src]
impl Send for CFProblem
[src]
impl Sync for CFProblem
[src]
impl Unpin for CFProblem
[src]
impl UnwindSafe for CFProblem
[src]
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,
pub 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,