pub struct ModelsListBuilder<'f1, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<'f1, S: State> ModelsListBuilder<'f1, S>
impl<'f1, S: State> ModelsListBuilder<'f1, S>
Sourcepub async fn call(self) -> Result<PaginatedModels, Error<ModelsListError>>where
S: IsComplete,
pub async fn call(self) -> Result<PaginatedModels, Error<ModelsListError>>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn configuration(
self,
value: &'f1 Configuration,
) -> ModelsListBuilder<'f1, SetConfiguration<S>>where
S::Configuration: IsUnset,
pub fn configuration(
self,
value: &'f1 Configuration,
) -> ModelsListBuilder<'f1, SetConfiguration<S>>where
S::Configuration: IsUnset,
Required.
Sourcepub fn page(self, value: i32) -> ModelsListBuilder<'f1, SetPage<S>>where
S::Page: IsUnset,
pub fn page(self, value: i32) -> ModelsListBuilder<'f1, SetPage<S>>where
S::Page: IsUnset,
Sourcepub fn maybe_page(
self,
value: Option<i32>,
) -> ModelsListBuilder<'f1, SetPage<S>>where
S::Page: IsUnset,
pub fn maybe_page(
self,
value: Option<i32>,
) -> ModelsListBuilder<'f1, SetPage<S>>where
S::Page: IsUnset,
Sourcepub fn limit(self, value: i32) -> ModelsListBuilder<'f1, SetLimit<S>>where
S::Limit: IsUnset,
pub fn limit(self, value: i32) -> ModelsListBuilder<'f1, SetLimit<S>>where
S::Limit: IsUnset,
Sourcepub fn maybe_limit(
self,
value: Option<i32>,
) -> ModelsListBuilder<'f1, SetLimit<S>>where
S::Limit: IsUnset,
pub fn maybe_limit(
self,
value: Option<i32>,
) -> ModelsListBuilder<'f1, SetLimit<S>>where
S::Limit: IsUnset,
Auto Trait Implementations§
impl<'f1, S> Freeze for ModelsListBuilder<'f1, S>
impl<'f1, S = Empty> !RefUnwindSafe for ModelsListBuilder<'f1, S>
impl<'f1, S> Send for ModelsListBuilder<'f1, S>
impl<'f1, S> Sync for ModelsListBuilder<'f1, S>
impl<'f1, S> Unpin for ModelsListBuilder<'f1, S>
impl<'f1, S = Empty> !UnwindSafe for ModelsListBuilder<'f1, S>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more