pub struct GetEventOddsRequest<'a> { /* private fields */ }Expand description
Request builder for getting event odds.
Implementations§
Source§impl<'a> GetEventOddsRequest<'a>
impl<'a> GetEventOddsRequest<'a>
Sourcepub fn custom_market(self, key: impl Into<String>) -> Self
pub fn custom_market(self, key: impl Into<String>) -> Self
Add a custom market by key.
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 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 include_links(self, include: bool) -> Self
pub fn include_links(self, include: bool) -> Self
Include deep links.
Sourcepub fn include_sids(self, include: bool) -> Self
pub fn include_sids(self, include: bool) -> Self
Include site IDs.
Sourcepub fn include_multipliers(self, include: bool) -> Self
pub fn include_multipliers(self, include: bool) -> Self
Include DFS multipliers.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetEventOddsRequest<'a>
impl<'a> !RefUnwindSafe for GetEventOddsRequest<'a>
impl<'a> Send for GetEventOddsRequest<'a>
impl<'a> Sync for GetEventOddsRequest<'a>
impl<'a> Unpin for GetEventOddsRequest<'a>
impl<'a> UnsafeUnpin for GetEventOddsRequest<'a>
impl<'a> !UnwindSafe for GetEventOddsRequest<'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