pub struct HarnessModels {
pub harness_id: String,
pub backend: String,
pub default: String,
pub models: Vec<Model>,
}Expand description
The GET /v1/harnesses/{id}/models body.
Deliberately NOT ModelCatalog: one harness answers a flat models
array plus its own defaults, while the server-wide catalogue groups by
backend. Serving the grouped shape here fails schema validation on a
missing models property.
Fields§
§harness_id: StringThe harness these models belong to.
backend: StringIts backend family.
default: StringThe model used when a task names none.
models: Vec<Model>Every model this harness accepts.
Trait Implementations§
Source§impl Clone for HarnessModels
impl Clone for HarnessModels
Source§impl Debug for HarnessModels
impl Debug for HarnessModels
Auto Trait Implementations§
impl Freeze for HarnessModels
impl RefUnwindSafe for HarnessModels
impl Send for HarnessModels
impl Sync for HarnessModels
impl Unpin for HarnessModels
impl UnsafeUnpin for HarnessModels
impl UnwindSafe for HarnessModels
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.