pub struct FootballDataProvider { /* private fields */ }Expand description
football-data.org-backed provider.
Implementations§
Trait Implementations§
Source§impl Clone for FootballDataProvider
impl Clone for FootballDataProvider
Source§fn clone(&self) -> FootballDataProvider
fn clone(&self) -> FootballDataProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FootballDataProvider
impl Debug for FootballDataProvider
Source§impl ScoreProvider for FootballDataProvider
impl ScoreProvider for FootballDataProvider
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
A short, stable name for diagnostics and UI (“ESPN”, “API-Football”, …).
Source§async fn scoreboard(&self, day: Option<Date>) -> Result<Vec<Match>>
async fn scoreboard(&self, day: Option<Date>) -> Result<Vec<Match>>
Matches for the tournament.
None returns the full schedule (every
fixture, group stage through the final); Some(day) filters to a single
UTC day.Source§async fn match_detail(&self, id: &str) -> Result<MatchDetail>
async fn match_detail(&self, id: &str) -> Result<MatchDetail>
Full detail for a single match by its provider id.
Auto Trait Implementations§
impl !RefUnwindSafe for FootballDataProvider
impl !UnwindSafe for FootballDataProvider
impl Freeze for FootballDataProvider
impl Send for FootballDataProvider
impl Sync for FootballDataProvider
impl Unpin for FootballDataProvider
impl UnsafeUnpin for FootballDataProvider
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