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