pub struct Models<'c, C: Config> { /* private fields */ }Expand description
API resource for the /v1/models endpoints
Provides methods to list and retrieve model information.
Implementations§
Source§impl<'c, C: Config> Models<'c, C>
impl<'c, C: Config> Models<'c, C>
Sourcepub async fn list(
&self,
params: &ModelListParams,
) -> Result<ModelsListResponse, AnthropicError>
pub async fn list( &self, params: &ModelListParams, ) -> Result<ModelsListResponse, AnthropicError>
Lists all available models with optional pagination parameters.
§Errors
Returns an error if the API request fails or the response cannot be parsed.
Auto Trait Implementations§
impl<'c, C> Freeze for Models<'c, C>
impl<'c, C> !RefUnwindSafe for Models<'c, C>
impl<'c, C> Send for Models<'c, C>
impl<'c, C> Sync for Models<'c, C>
impl<'c, C> Unpin for Models<'c, C>
impl<'c, C> !UnwindSafe for Models<'c, C>
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