pub struct TeamsRequestBuilder<H: TeamHydrations, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<H: TeamHydrations, S: State> TeamsRequestBuilder<H, S>
impl<H: TeamHydrations, S: State> TeamsRequestBuilder<H, S>
Sourcepub fn build(self) -> TeamsRequest<H>where
S: IsComplete,
pub fn build(self) -> TeamsRequest<H>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn sport_id(
self,
value: impl Into<SportId>,
) -> TeamsRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
pub fn sport_id(
self,
value: impl Into<SportId>,
) -> TeamsRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
Sourcepub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> TeamsRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
pub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> TeamsRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
Sourcepub fn season(
self,
value: impl Into<SeasonId>,
) -> TeamsRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn season(
self,
value: impl Into<SeasonId>,
) -> TeamsRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> TeamsRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> TeamsRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn team_id(
self,
value: impl Into<TeamId>,
) -> TeamsRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn team_id(
self,
value: impl Into<TeamId>,
) -> TeamsRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
Sourcepub fn maybe_team_id(
self,
value: Option<impl Into<TeamId>>,
) -> TeamsRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn maybe_team_id(
self,
value: Option<impl Into<TeamId>>,
) -> TeamsRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
Trait Implementations§
Source§impl<H: TeamHydrations, S: IsComplete> From<TeamsRequestBuilder<H, S>> for TeamsRequest<H>
impl<H: TeamHydrations, S: IsComplete> From<TeamsRequestBuilder<H, S>> for TeamsRequest<H>
Source§fn from(builder: TeamsRequestBuilder<H, S>) -> Self
fn from(builder: TeamsRequestBuilder<H, S>) -> Self
Converts to this type from the input type.
Source§impl<H: TeamHydrations, S: State + IsComplete> RequestURLBuilderExt for TeamsRequestBuilder<H, S>
impl<H: TeamHydrations, S: State + IsComplete> RequestURLBuilderExt for TeamsRequestBuilder<H, S>
Source§type Built = TeamsRequest<H>
type Built = TeamsRequest<H>
Built type;
PersonRequest for PersonRequestBuilderfn build_and_get( self, ) -> impl Future<Output = Result<<Self::Built as RequestURL>::Response>>
Auto Trait Implementations§
impl<H, S> Freeze for TeamsRequestBuilder<H, S>
impl<H, S> RefUnwindSafe for TeamsRequestBuilder<H, S>
impl<H, S> Send for TeamsRequestBuilder<H, S>
impl<H, S> Sync for TeamsRequestBuilder<H, S>
impl<H, S> Unpin for TeamsRequestBuilder<H, S>
impl<H, S> UnsafeUnpin for TeamsRequestBuilder<H, S>
impl<H, S> UnwindSafe for TeamsRequestBuilder<H, 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