struct Opt {Show 15 fields
pub configfile: PathBuf,
pub databasefile: Option<PathBuf>,
pub databaseurl: Option<String>,
pub port: Option<u16>,
pub template: Option<String>,
pub resetadminpw: bool,
pub nocontestscan: bool,
pub onlycontestscan: bool,
pub openbrowser: bool,
pub disableresultspage: bool,
pub enablepasswordlogin: bool,
pub teacherpage: Option<String>,
pub logtiming: bool,
pub autosaveinterval: Option<u64>,
pub version: bool,
}
Fields§
§configfile: PathBuf
Config file to use (default: ‘config.json’)
databasefile: Option<PathBuf>
Database file to use (default: from config file or ‘medal.db’)
databaseurl: Option<String>
Database file to use (default: from config file or ‘medal.db’)
port: Option<u16>
Port to listen on (default: from config file or 8080)
template: Option<String>
Teacher page in task directory
resetadminpw: bool
Reset password of admin user (user_id=1)
nocontestscan: bool
Run medal without scanning for contests
onlycontestscan: bool
Scan for contests without starting medal
openbrowser: bool
Automatically open medal in the default browser
disableresultspage: bool
Disable results page to reduce load on the server
enablepasswordlogin: bool
Enable the login with username and password
teacherpage: Option<String>
Teacher page in task directory
logtiming: bool
Log response time of every request
autosaveinterval: Option<u64>
Auto save interval in seconds (defaults to 10)
version: bool
Show version
Trait Implementations§
source§impl StructOpt for Opt
impl StructOpt for Opt
source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Creates the struct from
clap::ArgMatches
. It cannot fail
with a parameter generated by clap
by construction.§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Gets the struct from the command line arguments. Print the
error message and quit the program in case of failure.
§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure.§fn from_iter_safe<I>(iter: I) -> Result<Self, Error>
fn from_iter_safe<I>(iter: I) -> Result<Self, Error>
Gets the struct from any iterator such as a
Vec
of your making. Read moreAuto Trait Implementations§
impl Freeze for Opt
impl RefUnwindSafe for Opt
impl Send for Opt
impl Sync for Opt
impl Unpin for Opt
impl UnwindSafe for Opt
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PersistentInto<Arc<Mutex<T>>> for T
impl<T> PersistentInto<Arc<Mutex<T>>> for T
§fn persistent_into(self) -> Arc<Mutex<T>>
fn persistent_into(self) -> Arc<Mutex<T>>
Convert
self
into a value of type T
.§impl<T> PersistentInto<Arc<RwLock<T>>> for T
impl<T> PersistentInto<Arc<RwLock<T>>> for T
§fn persistent_into(self) -> Arc<RwLock<T>>
fn persistent_into(self) -> Arc<RwLock<T>>
Convert
self
into a value of type T
.§impl<T> PersistentInto<Arc<T>> for T
impl<T> PersistentInto<Arc<T>> for T
§fn persistent_into(self) -> Arc<T>
fn persistent_into(self) -> Arc<T>
Convert
self
into a value of type T
.§impl<T> PersistentInto<T> for T
impl<T> PersistentInto<T> for T
§fn persistent_into(self) -> T
fn persistent_into(self) -> T
Convert
self
into a value of type T
.