pub struct ModelAlias {
pub harness: Option<String>,
pub description: Option<String>,
pub default_effort: Option<String>,
pub autocompact: Option<u32>,
pub autocompact_pct: Option<u8>,
pub spec: ModelSpec,
}Expand description
A model alias — either pinned to a specific model ID or auto-resolved against the models cache at resolution time.
Fields§
§harness: Option<String>§description: Option<String>§default_effort: Option<String>§autocompact: Option<u32>§autocompact_pct: Option<u8>§spec: ModelSpecTrait Implementations§
Source§impl Clone for ModelAlias
impl Clone for ModelAlias
Source§fn clone(&self) -> ModelAlias
fn clone(&self) -> ModelAlias
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 ModelAlias
impl Debug for ModelAlias
Source§impl<'de> Deserialize<'de> for ModelAlias
impl<'de> Deserialize<'de> for ModelAlias
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelAlias
impl PartialEq for ModelAlias
Source§fn eq(&self, other: &ModelAlias) -> bool
fn eq(&self, other: &ModelAlias) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelAlias
impl Serialize for ModelAlias
impl StructuralPartialEq for ModelAlias
Auto Trait Implementations§
impl Freeze for ModelAlias
impl RefUnwindSafe for ModelAlias
impl Send for ModelAlias
impl Sync for ModelAlias
impl Unpin for ModelAlias
impl UnsafeUnpin for ModelAlias
impl UnwindSafe for ModelAlias
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more