pub struct Config {Show 16 fields
pub database_url: String,
pub bind_addr: String,
pub base_url: String,
pub mail_from: String,
pub nflverse_database_url: String,
pub fanduel_database_url: String,
pub nfl_data_database_url: String,
pub nflverse_github_token: Option<Secret>,
pub tank01_api_key: Option<Secret>,
pub live_dev_feed: bool,
pub live_dev_feed_tick_ms: u64,
pub nflverse_sync_interval_secs: u64,
pub season: u16,
pub media_dir: PathBuf,
pub smtp: Option<SmtpConfig>,
pub now_override: Option<OffsetDateTime>,
}Fields§
§database_url: String§bind_addr: String§base_url: String§mail_from: String§nflverse_database_url: String§fanduel_database_url: String§nfl_data_database_url: String§nflverse_github_token: Option<Secret>§tank01_api_key: Option<Secret>§live_dev_feed: bool§live_dev_feed_tick_ms: u64§nflverse_sync_interval_secs: u64§season: u16§media_dir: PathBuf§smtp: Option<SmtpConfig>§now_override: Option<OffsetDateTime>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more