mlflow_client/client/
response.rs1use serde::{Deserialize, Serialize};
2
3use crate::data::{Experiment, FileInfo, Metric, Run, RunInfo};
4
5#[derive(Serialize, Deserialize, Debug)]
6pub struct CreateExperimentResponse {
7 pub experiment_id: String,
8}
9
10#[derive(Serialize, Deserialize, Debug)]
11pub struct SearchExperimentsResponse {
12 #[serde(default)]
13 pub experiments: Vec<Experiment>,
14 pub next_page_token: Option<String>,
15}
16
17#[derive(Serialize, Deserialize, Debug)]
18pub struct GetExperimentResponse {
19 pub experiment: Experiment,
20}
21
22#[derive(Serialize, Deserialize, Debug)]
23pub struct GetRunResponse {
24 pub run: Run,
25}
26
27#[derive(Serialize, Deserialize, Debug)]
28pub struct GetMetricHistoryResponse {
29 pub metrics: Vec<Metric>,
30 pub next_page_token: Option<String>,
31}
32
33#[derive(Serialize, Deserialize, Debug)]
34pub struct SearchRunsResponse {
35 #[serde(default)]
36 pub runs: Vec<Run>,
37 pub next_page_token: Option<String>,
38}
39
40#[derive(Serialize, Deserialize, Debug)]
41pub struct ListArtifactsResponse {
42 pub root_uri: String,
43 pub files: Vec<FileInfo>,
44 pub page_token: Option<String>,
45}
46
47#[derive(Serialize, Deserialize, Debug)]
48pub struct UpdateRunResponse {
49 pub run_info: RunInfo,
50}
51
52#[derive(Serialize, Deserialize, Debug)]
53pub struct ErrorResponse {
54 pub error_code: String,
55 pub message: String,
56}
57
58#[derive(Serialize, Deserialize, Debug)]
59pub struct UnitResponse {}