pub struct ModelChoice {
pub model: String,
pub namespace: String,
pub efforts: Vec<String>,
pub status: ModelStatus,
pub is_example: bool,
pub retirement_date: Option<String>,
pub successor: Option<String>,
pub note: Option<String>,
}Expand description
One selectable entry in the TUI’s model picker, already resolved to the effort vocabulary that applies to it.
Fields§
§model: String§namespace: String§efforts: Vec<String>Effort values valid for this model: the model’s own list when it declares one, else the namespace’s, else the harness vocabulary.
status: ModelStatus§is_example: boolTrue when the entry came from an open namespace’s advisory examples
rather than a verified allowlist — pickable, but not an allowlist hit.
retirement_date: Option<String>§successor: Option<String>§note: Option<String>Implementations§
Source§impl ModelChoice
impl ModelChoice
Sourcepub fn label_suffix(&self) -> String
pub fn label_suffix(&self) -> String
Short suffix describing lifecycle / provenance for the picker line.
Trait Implementations§
Source§impl Clone for ModelChoice
impl Clone for ModelChoice
Source§impl Debug for ModelChoice
impl Debug for ModelChoice
impl Eq for ModelChoice
Source§impl PartialEq for ModelChoice
impl PartialEq for ModelChoice
impl StructuralPartialEq for ModelChoice
Auto Trait Implementations§
impl Freeze for ModelChoice
impl RefUnwindSafe for ModelChoice
impl Send for ModelChoice
impl Sync for ModelChoice
impl Unpin for ModelChoice
impl UnsafeUnpin for ModelChoice
impl UnwindSafe for ModelChoice
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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