pub struct NflverseDataConfig {
pub database_url: String,
pub earliest_season: u16,
pub github_token: Option<Secret>,
pub github_api_base: String,
}Fields§
§database_url: String§earliest_season: u16Per-season datasets fetch seasons >= this. Lower bound only, so the exact NFL season boundary doesn’t matter.
github_token: Option<Secret>Optional token to raise the GitHub API rate limit. Never required.
github_api_base: StringOverridable so tests can point at a mock server.
Trait Implementations§
Source§impl Clone for NflDataConfig
impl Clone for NflDataConfig
Source§impl Debug for NflDataConfig
impl Debug for NflDataConfig
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