pub struct ApiFootballProvider { /* private fields */ }Expand description
API-Football-backed provider.
Implementations§
Trait Implementations§
Source§impl Clone for ApiFootballProvider
impl Clone for ApiFootballProvider
Source§fn clone(&self) -> ApiFootballProvider
fn clone(&self) -> ApiFootballProvider
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 ApiFootballProvider
impl Debug for ApiFootballProvider
Source§impl ScoreProvider for ApiFootballProvider
impl ScoreProvider for ApiFootballProvider
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 ApiFootballProvider
impl !UnwindSafe for ApiFootballProvider
impl Freeze for ApiFootballProvider
impl Send for ApiFootballProvider
impl Sync for ApiFootballProvider
impl Unpin for ApiFootballProvider
impl UnsafeUnpin for ApiFootballProvider
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