pub struct ScheduleRequestBuilder<H: ScheduleHydrations, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<H: ScheduleHydrations, S: State> ScheduleRequestBuilder<H, S>
impl<H: ScheduleHydrations, S: State> ScheduleRequestBuilder<H, S>
Sourcepub fn build(self) -> ScheduleRequest<H>where
S: IsComplete,
pub fn build(self) -> ScheduleRequest<H>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn sport_id(
self,
value: impl Into<SportId>,
) -> ScheduleRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
pub fn sport_id(
self,
value: impl Into<SportId>,
) -> ScheduleRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
Sourcepub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> ScheduleRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
pub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> ScheduleRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
Sourcepub fn team_id(
self,
value: impl Into<TeamId>,
) -> ScheduleRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn team_id(
self,
value: impl Into<TeamId>,
) -> ScheduleRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
Sourcepub fn maybe_team_id(
self,
value: Option<impl Into<TeamId>>,
) -> ScheduleRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn maybe_team_id(
self,
value: Option<impl Into<TeamId>>,
) -> ScheduleRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
Sourcepub fn league_id(
self,
value: impl Into<LeagueId>,
) -> ScheduleRequestBuilder<H, SetLeagueId<S>>where
S::LeagueId: IsUnset,
pub fn league_id(
self,
value: impl Into<LeagueId>,
) -> ScheduleRequestBuilder<H, SetLeagueId<S>>where
S::LeagueId: IsUnset,
Sourcepub fn maybe_league_id(
self,
value: Option<impl Into<LeagueId>>,
) -> ScheduleRequestBuilder<H, SetLeagueId<S>>where
S::LeagueId: IsUnset,
pub fn maybe_league_id(
self,
value: Option<impl Into<LeagueId>>,
) -> ScheduleRequestBuilder<H, SetLeagueId<S>>where
S::LeagueId: IsUnset,
Sourcepub fn opponent_id(
self,
value: impl Into<TeamId>,
) -> ScheduleRequestBuilder<H, SetOpponentId<S>>where
S::OpponentId: IsUnset,
pub fn opponent_id(
self,
value: impl Into<TeamId>,
) -> ScheduleRequestBuilder<H, SetOpponentId<S>>where
S::OpponentId: IsUnset,
Sourcepub fn maybe_opponent_id(
self,
value: Option<impl Into<TeamId>>,
) -> ScheduleRequestBuilder<H, SetOpponentId<S>>where
S::OpponentId: IsUnset,
pub fn maybe_opponent_id(
self,
value: Option<impl Into<TeamId>>,
) -> ScheduleRequestBuilder<H, SetOpponentId<S>>where
S::OpponentId: IsUnset,
Sourcepub fn season(
self,
value: impl Into<SeasonId>,
) -> ScheduleRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn season(
self,
value: impl Into<SeasonId>,
) -> ScheduleRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> ScheduleRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> ScheduleRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Source§impl<H: ScheduleHydrations, S: State> ScheduleRequestBuilder<H, S>
impl<H: ScheduleHydrations, S: State> ScheduleRequestBuilder<H, S>
pub fn game_ids(
self,
game_ids: Vec<impl Into<GameId>>,
) -> ScheduleRequestBuilder<H, SetGameIds<S>>where
S::GameIds: IsUnset,
pub fn venue_ids(
self,
venue_ids: Vec<impl Into<VenueId>>,
) -> ScheduleRequestBuilder<H, SetVenueIds<S>>where
S::VenueIds: IsUnset,
pub fn date(self, date: NaiveDate) -> ScheduleRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
pub fn date_range(
self,
range: NaiveDateRange,
) -> ScheduleRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
Trait Implementations§
Source§impl<H: ScheduleHydrations, S: IsComplete> From<ScheduleRequestBuilder<H, S>> for ScheduleRequest<H>
impl<H: ScheduleHydrations, S: IsComplete> From<ScheduleRequestBuilder<H, S>> for ScheduleRequest<H>
Source§fn from(builder: ScheduleRequestBuilder<H, S>) -> Self
fn from(builder: ScheduleRequestBuilder<H, S>) -> Self
Converts to this type from the input type.
Source§impl<H: ScheduleHydrations, S: State + IsComplete> RequestURLBuilderExt for ScheduleRequestBuilder<H, S>
impl<H: ScheduleHydrations, S: State + IsComplete> RequestURLBuilderExt for ScheduleRequestBuilder<H, S>
Source§type Built = ScheduleRequest<H>
type Built = ScheduleRequest<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 ScheduleRequestBuilder<H, S>
impl<H, S> RefUnwindSafe for ScheduleRequestBuilder<H, S>
impl<H, S> Send for ScheduleRequestBuilder<H, S>
impl<H, S> Sync for ScheduleRequestBuilder<H, S>
impl<H, S> Unpin for ScheduleRequestBuilder<H, S>
impl<H, S> UnsafeUnpin for ScheduleRequestBuilder<H, S>
impl<H, S> UnwindSafe for ScheduleRequestBuilder<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