pub struct ListModelsRequest { /* private fields */ }Expand description
A pending GET /v1/models.
Implementations§
Source§impl ListModelsRequest
impl ListModelsRequest
Sourcepub fn retry(self, policy: RetryPolicy) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
Override the retry policy for this call.
Sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Override the per-attempt timeout for this call.
Sourcepub fn header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn header(self, name: HeaderName, value: HeaderValue) -> Self
Add a header for this call (protected headers still win).
Sourcepub async fn send(self) -> Result<ListModelsResponse>
pub async fn send(self) -> Result<ListModelsResponse>
Send the request.
Trait Implementations§
Source§impl Debug for ListModelsRequest
impl Debug for ListModelsRequest
Source§impl IntoFuture for ListModelsRequest
impl IntoFuture for ListModelsRequest
Source§type Output = Result<ListModelsResponse, Error>
type Output = Result<ListModelsResponse, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ListModelsRequest as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ListModelsRequest as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ListModelsRequest
impl !UnwindSafe for ListModelsRequest
impl Freeze for ListModelsRequest
impl Send for ListModelsRequest
impl Sync for ListModelsRequest
impl Unpin for ListModelsRequest
impl UnsafeUnpin for ListModelsRequest
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