Expand description

Used to interact with the Collection Endpoints.

The Collection struct is used to interact with the Collection Endpoints.

The Collection struct is initialized with a Client struct.

The Collection struct has two methods:

  • get
  • list

Example

use replicate_rust::Replicate;

let replicate = Replicate::new();

match replicate.collection.get(String::from("audio-generation")) {
    Ok(result) => println!("Success : {:?}", result),
    Err(e) => println!("Error : {}", e),
}

Structs