pub struct LocalChoice {
pub runtime: String,
pub runtime_name: String,
pub installed: bool,
pub base_url: String,
pub host: String,
pub model: String,
pub present: bool,
pub pull: Option<String>,
pub usable_gb: Option<f64>,
}Expand description
A local runtime and the model to serve on it.
Fields§
§runtime: String§runtime_name: String§installed: bool§base_url: String§host: String§model: String§present: boolThe weights are already on disk.
pull: Option<String>The command that downloads the weights, when they aren’t.
usable_gb: Option<f64>Trait Implementations§
Source§impl Clone for LocalChoice
impl Clone for LocalChoice
Source§fn clone(&self) -> LocalChoice
fn clone(&self) -> LocalChoice
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 LocalChoice
impl Debug for LocalChoice
Source§impl Serialize for LocalChoice
impl Serialize for LocalChoice
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 LocalChoice
impl RefUnwindSafe for LocalChoice
impl Send for LocalChoice
impl Sync for LocalChoice
impl Unpin for LocalChoice
impl UnsafeUnpin for LocalChoice
impl UnwindSafe for LocalChoice
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