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: StringURL for model homepage
owner: StringThe owner of the model
name: StringThe name of the model
description: StringA brief description of the model
visibility: StringWhether the model is public or private
github_url: StringGithub 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: usizeHow many times the model has been run
cover_image_url: StringImage URL to show on Replicate’s Model page
default_example: ValueA simple example to show model’s use
latest_version: ModelVersionThe 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