pub struct Models<'c> { /* private fields */ }
Implementations§
Source§impl Models<'_>
impl Models<'_>
pub fn new(client: &Client) -> Models<'_>
pub async fn list(&self) -> Result<ListModelsResponse, AnthropicError>
pub async fn get( &self, model_id: impl AsRef<str>, ) -> Result<GetModelResponse, AnthropicError>
Trait Implementations§
Auto Trait Implementations§
impl<'c> Freeze for Models<'c>
impl<'c> !RefUnwindSafe for Models<'c>
impl<'c> Send for Models<'c>
impl<'c> Sync for Models<'c>
impl<'c> Unpin for Models<'c>
impl<'c> !UnwindSafe for Models<'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