Struct replicate_rs::models::ModelClient
source · pub struct ModelClient { /* private fields */ }
Expand description
A client for interacting with models
endpoints
Implementations§
source§impl ModelClient
impl ModelClient
sourcepub fn from(client: ReplicateConfig) -> Self
pub fn from(client: ReplicateConfig) -> Self
Create a new ModelClient
based upon a ReplicateConfig
object
sourcepub async fn get(&self, owner: &str, name: &str) -> Result<Model>
pub async fn get(&self, owner: &str, name: &str) -> Result<Model>
Retrieve details for a specific model
sourcepub async fn get_specific_version(
&self,
owner: &str,
name: &str,
version_id: &str
) -> Result<Model>
pub async fn get_specific_version( &self, owner: &str, name: &str, version_id: &str ) -> Result<Model>
Retrieve details for a specific model’s version
sourcepub async fn get_latest_version(
&self,
owner: &str,
name: &str
) -> Result<ModelVersion>
pub async fn get_latest_version( &self, owner: &str, name: &str ) -> Result<ModelVersion>
Retrieve details for latest version of a specific model
sourcepub async fn list_versions(
&self,
owner: &str,
name: &str
) -> Result<ModelVersions>
pub async fn list_versions( &self, owner: &str, name: &str ) -> Result<ModelVersions>
Retrieve list of all available versions of a specific model
sourcepub async fn get_models(&self) -> Result<Models>
pub async fn get_models(&self) -> Result<Models>
Retrieve all publically and private available models
Auto Trait Implementations§
impl RefUnwindSafe for ModelClient
impl Send for ModelClient
impl Sync for ModelClient
impl Unpin for ModelClient
impl UnwindSafe for ModelClient
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