pub struct AttendanceRequestBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> AttendanceRequestBuilder<S>
impl<S: State> AttendanceRequestBuilder<S>
Sourcepub fn build(self) -> AttendanceRequestwhere
S: IsComplete,
pub fn build(self) -> AttendanceRequestwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn season(
self,
value: impl Into<SeasonWithMinorId>,
) -> AttendanceRequestBuilder<SetSeason<S>>where
S::Season: IsUnset,
pub fn season(
self,
value: impl Into<SeasonWithMinorId>,
) -> AttendanceRequestBuilder<SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn maybe_season(
self,
value: Option<impl Into<SeasonWithMinorId>>,
) -> AttendanceRequestBuilder<SetSeason<S>>where
S::Season: IsUnset,
pub fn maybe_season(
self,
value: Option<impl Into<SeasonWithMinorId>>,
) -> AttendanceRequestBuilder<SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn date(
self,
value: impl Into<NaiveDate>,
) -> AttendanceRequestBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn date(
self,
value: impl Into<NaiveDate>,
) -> AttendanceRequestBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn maybe_date(
self,
value: Option<impl Into<NaiveDate>>,
) -> AttendanceRequestBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn maybe_date(
self,
value: Option<impl Into<NaiveDate>>,
) -> AttendanceRequestBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn game_type(
self,
value: GameType,
) -> AttendanceRequestBuilder<SetGameType<S>>where
S::GameType: IsUnset,
pub fn game_type(
self,
value: GameType,
) -> AttendanceRequestBuilder<SetGameType<S>>where
S::GameType: IsUnset,
Sourcepub fn maybe_game_type(
self,
value: Option<GameType>,
) -> AttendanceRequestBuilder<SetGameType<S>>where
S::GameType: IsUnset,
pub fn maybe_game_type(
self,
value: Option<GameType>,
) -> AttendanceRequestBuilder<SetGameType<S>>where
S::GameType: IsUnset,
Source§impl<S: State> AttendanceRequestBuilder<S>
impl<S: State> AttendanceRequestBuilder<S>
Sourcepub fn team_id(
self,
id: impl Into<TeamId>,
) -> AttendanceRequestBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn team_id(
self,
id: impl Into<TeamId>,
) -> AttendanceRequestBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn league_id(
self,
id: impl Into<LeagueId>,
) -> AttendanceRequestBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn league_id(
self,
id: impl Into<LeagueId>,
) -> AttendanceRequestBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Trait Implementations§
Source§impl<S: IsComplete> From<AttendanceRequestBuilder<S>> for AttendanceRequest
impl<S: IsComplete> From<AttendanceRequestBuilder<S>> for AttendanceRequest
Source§fn from(builder: AttendanceRequestBuilder<S>) -> Self
fn from(builder: AttendanceRequestBuilder<S>) -> Self
Converts to this type from the input type.
Source§impl<S: State + IsComplete> RequestURLBuilderExt for AttendanceRequestBuilder<S>
impl<S: State + IsComplete> RequestURLBuilderExt for AttendanceRequestBuilder<S>
Source§type Built = AttendanceRequest
type Built = AttendanceRequest
Built type;
PersonRequest for PersonRequestBuilderfn build_and_get( self, ) -> impl Future<Output = Result<<Self::Built as RequestURL>::Response>>
Auto Trait Implementations§
impl<S> Freeze for AttendanceRequestBuilder<S>
impl<S> RefUnwindSafe for AttendanceRequestBuilder<S>
impl<S> Send for AttendanceRequestBuilder<S>
impl<S> Sync for AttendanceRequestBuilder<S>
impl<S> Unpin for AttendanceRequestBuilder<S>
impl<S> UnsafeUnpin for AttendanceRequestBuilder<S>
impl<S> UnwindSafe for AttendanceRequestBuilder<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