pub struct ModelItem {
pub label: String,
pub model_id: String,
pub provider: String,
pub is_current: bool,
pub is_local: bool,
}Expand description
A model item for the dropdown — either an alias or a local model.
Fields§
§label: StringDisplay name (alias name or local model ID).
model_id: StringResolved model ID (e.g. “gemini-2.0-flash-lite”).
provider: StringProvider name for display (e.g. “Gemini”).
is_current: boolWhether this is the currently active model.
is_local: boolWhether this is the special “local” auto-detect alias.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelItem
impl RefUnwindSafe for ModelItem
impl Send for ModelItem
impl Sync for ModelItem
impl Unpin for ModelItem
impl UnsafeUnpin for ModelItem
impl UnwindSafe for ModelItem
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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