Struct monitor_types::CoreConfig
source · pub struct CoreConfig {Show 13 fields
pub host: String,
pub port: u16,
pub jwt_secret: String,
pub jwt_valid_for: Timelength,
pub monitoring_interval: Timelength,
pub daily_offset_hours: u8,
pub keep_stats_for_days: u64,
pub github_webhook_secret: String,
pub slack_url: Option<String>,
pub local_auth: bool,
pub github_oauth: OauthCredentials,
pub google_oauth: OauthCredentials,
pub mongo: MongoConfig,
}Fields§
§host: String§port: u16§jwt_secret: String§jwt_valid_for: Timelength§monitoring_interval: Timelength§daily_offset_hours: u8§keep_stats_for_days: u64§github_webhook_secret: String§slack_url: Option<String>§local_auth: bool§github_oauth: OauthCredentials§google_oauth: OauthCredentials§mongo: MongoConfigTrait Implementations§
source§impl Clone for CoreConfig
impl Clone for CoreConfig
source§fn clone(&self) -> CoreConfig
fn clone(&self) -> CoreConfig
Returns a copy of the value. Read more
1.0.0 · 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 CoreConfig
impl Debug for CoreConfig
source§impl<'de> Deserialize<'de> for CoreConfig
impl<'de> Deserialize<'de> for CoreConfig
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