pub struct Flags {
pub http_timeout: Option<Located<Loose<u64>>>,
pub keep_runs: Option<Located<Loose<u64>>>,
pub run_timeout: Option<Located<Loose<Value>>>,
pub unknown: UnknownKeys,
}Expand description
flags:: how DRE itself behaves. Each has a DRE_ environment variable that wins over it.
Fields§
§http_timeout: Option<Located<Loose<u64>>>Seconds a download (the plugin registry, a plugin package, a DRE update) may receive nothing before it’s tried again (3 tries in all). DRE_HTTP_TIMEOUT overrides it.
keep_runs: Option<Located<Loose<u64>>>How many runs of each report and Set to keep in target/run/ (any status; the current run always stays). Runs beyond it are removed after each run. Recommended on servers and anything scheduled (an audit trail of what was sent), mindful of file sizes. dre run --keep-runs and DRE_KEEP_RUNS override it.
run_timeout: Option<Located<Loose<Value>>>How long a dre run may take before it’s stopped (as for a termination signal; its Bindings are recorded as timed_out and dre exits 124): a duration such as 2h or 90m, or seconds. Off by default. dre run --timeout and DRE_RUN_TIMEOUT override it.
unknown: UnknownKeysTrait Implementations§
Source§impl<'de> Deserialize<'de> for Flags
impl<'de> Deserialize<'de> for Flags
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>,
Source§impl JsonSchema for Flags
impl JsonSchema for Flags
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more