pub struct NflDataConfig {
pub nflverse_database_url: String,
pub fanduel_database_url: String,
pub database_url: String,
pub season: Season,
pub earliest_season: u16,
pub github_token: Option<Secret>,
pub github_api_base: String,
pub refresh_interval: Option<Duration>,
pub tank01: Option<Tank01Config>,
}Fields§
§nflverse_database_url: String§fanduel_database_url: String§database_url: String§season: SeasonApplication season carried by connected NflData handles; the
nflverse source’s earliest_season fetch bound is separate.
earliest_season: u16Datasets fetch seasons >= this.
github_token: Option<Secret>§github_api_base: String§refresh_interval: Option<Duration>Background refresh cadence; None disables it.
tank01: Option<Tank01Config>Independent live injury source; None disables injury polling.
Trait Implementations§
Source§impl Clone for NflDataConfig
impl Clone for NflDataConfig
Source§impl Debug for NflDataConfig
impl Debug for NflDataConfig
Source§impl Default for NflDataConfig
impl Default for NflDataConfig
Source§impl From<NflDataConfig> for NflverseDataConfig
impl From<NflDataConfig> for NflverseDataConfig
Source§fn from(config: NflDataConfig) -> Self
fn from(config: NflDataConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NflDataConfig
impl RefUnwindSafe for NflDataConfig
impl Send for NflDataConfig
impl Sync for NflDataConfig
impl Unpin for NflDataConfig
impl UnsafeUnpin for NflDataConfig
impl UnwindSafe for NflDataConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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