[][src]Struct acick_config::Config

pub struct Config {
    pub service_id: ServiceKind,
    pub contest_id: ContestId,
    // some fields omitted
}

Fields

service_id: ServiceKindcontest_id: ContestId

Methods

impl Config[src]

pub fn load(
    service_id: ServiceKind,
    contest_id: ContestId,
    cnsl: &mut Console
) -> Result<Self>
[src]

pub fn session(&self) -> &SessionConfig[src]

pub fn service(&self) -> &ServiceConfig[src]

pub fn move_testcases_dir(
    &self,
    problem: &Problem,
    from: &AbsPathBuf,
    cnsl: &mut Console
) -> Result<bool>
[src]

pub fn save_problem(
    &self,
    problem: &Problem,
    overwrite: bool,
    cnsl: &mut Console
) -> Result<Option<bool>>
[src]

pub fn load_problem(
    &self,
    problem_id: &ProblemId,
    cnsl: &mut Console
) -> Result<Problem>
[src]

pub fn expand_and_save_source(
    &self,
    service: &Service,
    contest: &Contest,
    problem: &Problem,
    overwrite: bool,
    cnsl: &mut Console
) -> Result<Option<bool>>
[src]

pub fn load_source(
    &self,
    problem_id: &ProblemId,
    cnsl: &mut Console
) -> Result<String>
[src]

pub fn exec_compile(&self, problem_id: &ProblemId) -> Result<Command>[src]

pub fn exec_run(&self, problem_id: &ProblemId) -> Result<Command>[src]

pub fn testcases_abs_dir(&self, problem_id: &ProblemId) -> Result<AbsPathBuf>[src]

pub fn default_in_dir(base_dir: AbsPathBuf) -> Self[src]

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Display for Config[src]

impl Eq for Config[src]

impl Hash for Config[src]

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralEq for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,