pub struct RuntimeProfile {Show 14 fields
pub id: String,
pub name: String,
pub aliases: Vec<String>,
pub homepage: Option<String>,
pub binaries: Vec<String>,
pub version: VersionProbe,
pub ports: Vec<u16>,
pub provider_names: Vec<String>,
pub pull: Option<String>,
pub serve: Option<String>,
pub models: RuntimeModels,
pub install: Vec<InstallMethod>,
pub catalog: Vec<CatalogModel>,
pub origin: String,
}Expand description
A declarative description of one local inference runtime.
Fields§
§id: String§name: String§aliases: Vec<String>§homepage: Option<String>§binaries: Vec<String>§version: VersionProbe§ports: Vec<u16>Default ports, used to recognize a provider’s base URL.
provider_names: Vec<String>Provider names harness configs use for this runtime.
pull: Option<String>Command template to fetch a model ({model}, {repo}, {revision}).
serve: Option<String>§models: RuntimeModels§install: Vec<InstallMethod>§catalog: Vec<CatalogModel>Models hlock localize may pick.
origin: StringImplementations§
Trait Implementations§
Source§impl Clone for RuntimeProfile
impl Clone for RuntimeProfile
Source§fn clone(&self) -> RuntimeProfile
fn clone(&self) -> RuntimeProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeProfile
impl Debug for RuntimeProfile
Source§impl Default for RuntimeProfile
impl Default for RuntimeProfile
Source§fn default() -> RuntimeProfile
fn default() -> RuntimeProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeProfilewhere
RuntimeProfile: Default,
impl<'de> Deserialize<'de> for RuntimeProfilewhere
RuntimeProfile: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RuntimeProfile
impl Serialize for RuntimeProfile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeProfile
impl RefUnwindSafe for RuntimeProfile
impl Send for RuntimeProfile
impl Sync for RuntimeProfile
impl Unpin for RuntimeProfile
impl UnsafeUnpin for RuntimeProfile
impl UnwindSafe for RuntimeProfile
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