pub struct GetOddsRequest<'a> { /* private fields */ }Expand description
Request builder for getting odds.
Implementations§
Source§impl<'a> GetOddsRequest<'a>
impl<'a> GetOddsRequest<'a>
Sourcepub fn date_format(self, format: DateFormat) -> Self
pub fn date_format(self, format: DateFormat) -> Self
Set the date format.
Sourcepub fn odds_format(self, format: OddsFormat) -> Self
pub fn odds_format(self, format: OddsFormat) -> Self
Set the odds format.
Sourcepub fn event_ids(self, ids: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn event_ids(self, ids: impl IntoIterator<Item = impl Into<String>>) -> Self
Filter by specific event IDs.
Sourcepub fn bookmakers(
self,
bookmakers: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn bookmakers( self, bookmakers: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Filter by specific bookmakers.
Sourcepub fn commence_time_from(self, time: DateTime<Utc>) -> Self
pub fn commence_time_from(self, time: DateTime<Utc>) -> Self
Filter events starting from this time.
Sourcepub fn commence_time_to(self, time: DateTime<Utc>) -> Self
pub fn commence_time_to(self, time: DateTime<Utc>) -> Self
Filter events starting until this time.
Sourcepub fn include_links(self, include: bool) -> Self
pub fn include_links(self, include: bool) -> Self
Include deep links to bookmaker pages.
Sourcepub fn include_sids(self, include: bool) -> Self
pub fn include_sids(self, include: bool) -> Self
Include site IDs.
Sourcepub fn include_bet_limits(self, include: bool) -> Self
pub fn include_bet_limits(self, include: bool) -> Self
Include bet limits.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetOddsRequest<'a>
impl<'a> !RefUnwindSafe for GetOddsRequest<'a>
impl<'a> Send for GetOddsRequest<'a>
impl<'a> Sync for GetOddsRequest<'a>
impl<'a> Unpin for GetOddsRequest<'a>
impl<'a> UnsafeUnpin for GetOddsRequest<'a>
impl<'a> !UnwindSafe for GetOddsRequest<'a>
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