pub struct AliasInfo {
pub name: String,
pub target: String,
}Expand description
One configured alias entry: a short name pointing at a target.
Targets are model ids, optionally prefixed with provider/. See
crate::model_resolve for resolution rules.
Fields§
§name: StringThe short name users type, e.g. "smart".
target: StringWhat the alias points at, e.g. "claude-opus-4-6" or
"openai/gpt-4.1-mini".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AliasInfo
impl<'de> Deserialize<'de> for AliasInfo
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 AliasInfo
impl RefUnwindSafe for AliasInfo
impl Send for AliasInfo
impl Sync for AliasInfo
impl Unpin for AliasInfo
impl UnsafeUnpin for AliasInfo
impl UnwindSafe for AliasInfo
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