pub struct StartValidationRequest {
pub project_id: ProjectID,
pub name: String,
pub training_session_id: TrainingSessionID,
pub model_file: String,
pub val_type: String,
pub params: HashMap<String, Parameter>,
pub is_local: bool,
pub is_kubernetes: bool,
pub description: Option<String>,
pub dataset_id: Option<DatasetID>,
pub annotation_set_id: Option<AnnotationSetID>,
pub snapshot_id: Option<SnapshotID>,
}Expand description
Inputs for client::Client::start_validation_session.
The required fields mirror what Studio’s cloud.server.start endpoint
needs to create a validation session against a known training session
(training_session_id, model_file, val_type) and a known target
(dataset_id + annotation_set_id, or a snapshot_id).
is_local: true marks the resulting session as user-managed on
the server: the row is created in the database and data uploads /
downloads / metric updates all work normally, but no EC2 instance is
provisioned and no automated validator pipeline is started. That is
the mode our integration tests want — we get a real session to
exercise the upload/list/download wrappers against, and we are
responsible for tearing it down with
client::Client::delete_validation_sessions when done.
is_kubernetes: true analogously routes the session to a Kubernetes
manage type. Leave both flags false for the default AWS_EC2 path.
Fields§
§project_id: ProjectID§name: String§training_session_id: TrainingSessionID§model_file: String§val_type: String§params: HashMap<String, Parameter>§is_local: bool§is_kubernetes: bool§description: Option<String>§dataset_id: Option<DatasetID>§annotation_set_id: Option<AnnotationSetID>§snapshot_id: Option<SnapshotID>Trait Implementations§
Source§impl Clone for StartValidationRequest
impl Clone for StartValidationRequest
Source§fn clone(&self) -> StartValidationRequest
fn clone(&self) -> StartValidationRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for StartValidationRequest
impl RefUnwindSafe for StartValidationRequest
impl Send for StartValidationRequest
impl Sync for StartValidationRequest
impl Unpin for StartValidationRequest
impl UnsafeUnpin for StartValidationRequest
impl UnwindSafe for StartValidationRequest
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
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> 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> ⓘ
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> ⓘ
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