pub struct Model {
pub url: String,
pub owner: String,
pub name: String,
pub description: String,
pub visibility: String,
pub github_url: String,
pub paper_url: Option<String>,
pub license_url: Option<String>,
pub run_count: usize,
pub cover_image_url: String,
pub default_example: Value,
pub latest_version: ModelVersion,
}
Expand description
All details available for a particular Model
Fields§
§url: String
URL for model homepage
owner: String
The owner of the model
name: String
The name of the model
description: String
A brief description of the model
visibility: String
Whether the model is public or private
github_url: String
Github URL for the associated repo
paper_url: Option<String>
Url for an associated paper
license_url: Option<String>
Url for the model’s license
run_count: usize
How many times the model has been run
cover_image_url: String
Image URL to show on Replicate’s Model page
default_example: Value
A simple example to show model’s use
latest_version: ModelVersion
The latest version’s details
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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