pub struct LeaguesRequestBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> LeaguesRequestBuilder<S>
impl<S: State> LeaguesRequestBuilder<S>
Sourcepub fn build(self) -> LeaguesRequestwhere
S: IsComplete,
pub fn build(self) -> LeaguesRequestwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn sport_id(
self,
value: impl Into<SportId>,
) -> LeaguesRequestBuilder<SetSportId<S>>where
S::SportId: IsUnset,
pub fn sport_id(
self,
value: impl Into<SportId>,
) -> LeaguesRequestBuilder<SetSportId<S>>where
S::SportId: IsUnset,
Sourcepub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> LeaguesRequestBuilder<SetSportId<S>>where
S::SportId: IsUnset,
pub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> LeaguesRequestBuilder<SetSportId<S>>where
S::SportId: IsUnset,
Source§impl<S: State> LeaguesRequestBuilder<S>
impl<S: State> LeaguesRequestBuilder<S>
pub fn league_ids<T: Into<LeagueId>>(
self,
league_ids: Vec<T>,
) -> LeaguesRequestBuilder<SetLeagueIds<S>>where
S::LeagueIds: IsUnset,
Trait Implementations§
Source§impl<S: IsComplete> From<LeaguesRequestBuilder<S>> for LeaguesRequest
impl<S: IsComplete> From<LeaguesRequestBuilder<S>> for LeaguesRequest
Source§fn from(builder: LeaguesRequestBuilder<S>) -> Self
fn from(builder: LeaguesRequestBuilder<S>) -> Self
Converts to this type from the input type.
Source§impl<S: State + IsComplete> RequestURLBuilderExt for LeaguesRequestBuilder<S>
impl<S: State + IsComplete> RequestURLBuilderExt for LeaguesRequestBuilder<S>
type Built = LeaguesRequest
fn build_and_get( self, ) -> impl Future<Output = Result<<Self::Built as RequestURL>::Response>>
Auto Trait Implementations§
impl<S> Freeze for LeaguesRequestBuilder<S>
impl<S> RefUnwindSafe for LeaguesRequestBuilder<S>
impl<S> Send for LeaguesRequestBuilder<S>
impl<S> Sync for LeaguesRequestBuilder<S>
impl<S> Unpin for LeaguesRequestBuilder<S>
impl<S> UnsafeUnpin for LeaguesRequestBuilder<S>
impl<S> UnwindSafe for LeaguesRequestBuilder<S>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more