Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
*/
use crate::mars::Environment;
use crate::non_empty_string::NonEmptyString;
pub(crate) struct AdsClientConfig {
pub cache_config: Option<AdsCacheConfig>,
pub environment: Environment,
#[cfg(feature = "stateful")]
pub store_config: Option<AdsStoreConfig>,
pub user_agent: Option<NonEmptyString>,
}
#[derive(Clone, Debug)]
pub(crate) struct AdsCacheConfig {
pub db_path: String,
pub default_cache_ttl_seconds: Option<u64>,
pub max_size_mib: Option<u64>,
}
#[cfg(feature = "stateful")]
#[derive(Clone, Debug)]
pub(crate) struct AdsStoreConfig {
pub db_path: String,
}