pub struct CreateJobRequest {
pub name: String,
pub description: Option<String>,
pub algorithm: String,
pub project_id: Option<String>,
pub config: Option<String>,
pub env_name: Option<String>,
pub timesteps: Option<i64>,
pub n_steps: Option<i64>,
pub epochs: Option<i64>,
pub lr: Option<f64>,
pub patience: Option<i64>,
pub min_delta: Option<f64>,
}Expand description
Request body for POST {control_plane_url}/api/model-deployments/jobs - field-for-field the
same shape as mecha10-api/src/jobs/types.rs::CreateJobRequest (and, transitively,
packages/dashboard’s types/ml-training.ts CreateJobRequest/buildCreateJobRequest,
PR #278/LAB-1431). Deliberately duplicated rather than shared via a crate dependency - the
CLI and API are different deployables and this struct is the wire contract, not shared code.
Fields§
§name: String§description: Option<String>§algorithm: String§project_id: Option<String>§config: Option<String>§env_name: Option<String>§timesteps: Option<i64>§n_steps: Option<i64>§epochs: Option<i64>§lr: Option<f64>§patience: Option<i64>§min_delta: Option<f64>Trait Implementations§
Source§impl Clone for CreateJobRequest
impl Clone for CreateJobRequest
Source§fn clone(&self) -> CreateJobRequest
fn clone(&self) -> CreateJobRequest
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 CreateJobRequest
impl Debug for CreateJobRequest
Auto Trait Implementations§
impl Freeze for CreateJobRequest
impl RefUnwindSafe for CreateJobRequest
impl Send for CreateJobRequest
impl Sync for CreateJobRequest
impl Unpin for CreateJobRequest
impl UnsafeUnpin for CreateJobRequest
impl UnwindSafe for CreateJobRequest
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