pub struct ApiConfig {
Show 22 fields pub check_enabled: bool, pub prometheus_exporter_enabled: bool, pub pull_servers: Vec<String>, pub tcp_timeout_seconds: u32, pub broken_stations_never_working_timeout_seconds: u32, pub broken_stations_timeout_seconds: u32, pub checks_timeout_seconds: u32, pub click_valid_timeout_seconds: u32, pub clicks_timeout_seconds: u32, pub mirror_pull_interval_seconds: u32, pub update_caches_interval_seconds: u32, pub server_name: String, pub server_location: String, pub server_country_code: String, pub check_retries: u32, pub check_batchsize: u32, pub check_pause_seconds: u32, pub api_threads: u32, pub cache_type: String, pub cache_ttl: u32, pub language_replace_filepath: String, pub language_to_code_filepath: String,
}

Fields

check_enabled: boolprometheus_exporter_enabled: boolpull_servers: Vec<String>tcp_timeout_seconds: u32broken_stations_never_working_timeout_seconds: u32broken_stations_timeout_seconds: u32checks_timeout_seconds: u32click_valid_timeout_seconds: u32clicks_timeout_seconds: u32mirror_pull_interval_seconds: u32update_caches_interval_seconds: u32server_name: Stringserver_location: Stringserver_country_code: Stringcheck_retries: u32check_batchsize: u32check_pause_seconds: u32api_threads: u32cache_type: Stringcache_ttl: u32language_replace_filepath: Stringlanguage_to_code_filepath: String

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more