pub struct GetPredictionV1EventsBuilder<'a> { /* private fields */ }Expand description
Additive request builder for getPredictionV1Events.
Implementations§
Source§impl<'a> GetPredictionV1EventsBuilder<'a>
impl<'a> GetPredictionV1EventsBuilder<'a>
Sourcepub fn provider(self, provider: GetPredictionV1EventsProvider) -> Self
pub fn provider(self, provider: GetPredictionV1EventsProvider) -> Self
Set the optional provider operation parameter.
Sourcepub fn include_markets(self, include_markets: bool) -> Self
pub fn include_markets(self, include_markets: bool) -> Self
Set the optional includeMarkets operation parameter.
Sourcepub fn include_all_markets(self, include_all_markets: bool) -> Self
pub fn include_all_markets(self, include_all_markets: bool) -> Self
Set the optional includeAllMarkets operation parameter.
Sourcepub fn category(self, category: GetPredictionV1EventsCategory) -> Self
pub fn category(self, category: GetPredictionV1EventsCategory) -> Self
Set the optional category operation parameter.
Sourcepub fn subcategory(self, subcategory: impl Into<String>) -> Self
pub fn subcategory(self, subcategory: impl Into<String>) -> Self
Set the optional subcategory operation parameter.
Sourcepub fn sort_by(self, sort_by: GetPredictionV1EventsSortBy) -> Self
pub fn sort_by(self, sort_by: GetPredictionV1EventsSortBy) -> Self
Set the optional sortBy operation parameter.
Sourcepub fn sort_direction(
self,
sort_direction: GetPredictionV1EventsSortDirection,
) -> Self
pub fn sort_direction( self, sort_direction: GetPredictionV1EventsSortDirection, ) -> Self
Set the optional sortDirection operation parameter.
Sourcepub fn filter(self, filter: GetPredictionV1EventsFilter) -> Self
pub fn filter(self, filter: GetPredictionV1EventsFilter) -> Self
Set the optional filter operation parameter.
Set the optional tags operation parameter.
Sourcepub async fn send(
self,
) -> Result<GetPredictionV1EventsResponse, ApiOpError<Value>>
pub async fn send( self, ) -> Result<GetPredictionV1EventsResponse, ApiOpError<Value>>
Send the request through the existing flat operation method.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetPredictionV1EventsBuilder<'a>
impl<'a> !UnwindSafe for GetPredictionV1EventsBuilder<'a>
impl<'a> Freeze for GetPredictionV1EventsBuilder<'a>
impl<'a> Send for GetPredictionV1EventsBuilder<'a>
impl<'a> Sync for GetPredictionV1EventsBuilder<'a>
impl<'a> Unpin for GetPredictionV1EventsBuilder<'a>
impl<'a> UnsafeUnpin for GetPredictionV1EventsBuilder<'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