[][src]Struct cms_tools::DetailedSubmission

pub struct DetailedSubmission {
    pub files: Vec<File>,
    pub compilation_outcome: Option<String>,
    pub task_id: usize,
    pub language: Option<String>,
    pub score_details: Option<Vec<ScoreDetail>>,
    pub timestamp: f64,
    pub compilation_stderr: Option<String>,
    pub compilation_time: Option<f64>,
    pub evaluation_outcome: Option<String>,
    pub score: Option<f64>,
    pub compilation_stdout: Option<String>,
    pub success: u8,
    pub id: usize,
    pub compilation_memory: Option<u64>,
}

Details of a specific submission

Fields

files: Vec<File>compilation_outcome: Option<String>task_id: usizelanguage: Option<String>score_details: Option<Vec<ScoreDetail>>timestamp: f64compilation_stderr: Option<String>compilation_time: Option<f64>evaluation_outcome: Option<String>score: Option<f64>compilation_stdout: Option<String>success: u8id: usizecompilation_memory: Option<u64>

Methods

impl DetailedSubmission[src]

pub fn get_time(&self) -> Option<f64>[src]

get the maximum execution time among all testcases

pub fn get_memory(&self) -> Option<u64>[src]

get the maximum memory used among all testcases

Trait Implementations

impl Clone for DetailedSubmission[src]

impl Debug for DetailedSubmission[src]

impl Serialize for DetailedSubmission[src]

impl<'de> Deserialize<'de> for DetailedSubmission[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err