pub struct ProblemConfig {
pub owner_id: Option<i64>,
pub type: ProblemType,
pub merge_subgroups: bool,
pub contest_id: i64,
pub problem_index: i64,
pub name_ru: String,
pub name_en: String,
pub time_limit_ms: i32,
pub memory_limit_mb: i32,
pub checker_path: String,
pub tests_path: String,
pub subgroups: Vec<Subgroup>,
}Expand description
Problem’s config
Fields§
§owner_id: Option<i64>Problem’s owner’s user id (optional)
type: ProblemTypeProblem’s type
merge_subgroups: boolMerge subgroups
contest_id: i64Problems’s contest id
problem_index: i64Problem’s index in contest
name_ru: StringProblem’s name (ru)
name_en: StringProblem’s name (en)
time_limit_ms: i32Testing time limit in milliseconds
memory_limit_mb: i32Testing memory limit in megabytes
checker_path: StringPath to the checker relative to problem’s path
tests_path: StringPath to the directory, which contains directories with tests inputs and outputs, relative to problem’s path
subgroups: Vec<Subgroup>Testing subgroups
Trait Implementations§
Source§impl Clone for ProblemConfig
impl Clone for ProblemConfig
Source§fn clone(&self) -> ProblemConfig
fn clone(&self) -> ProblemConfig
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 ProblemConfig
impl Debug for ProblemConfig
Source§impl<'de> Deserialize<'de> for ProblemConfig
impl<'de> Deserialize<'de> for ProblemConfig
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 ProblemConfig
impl RefUnwindSafe for ProblemConfig
impl Send for ProblemConfig
impl Sync for ProblemConfig
impl Unpin for ProblemConfig
impl UnsafeUnpin for ProblemConfig
impl UnwindSafe for ProblemConfig
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