Line data Source code
1 : //! Structs representing the JSON formats used in the compute_ctl's HTTP API.
2 :
3 : use crate::spec::ComputeSpec;
4 : use serde::Deserialize;
5 :
6 : /// Request of the /configure API
7 : ///
8 : /// We now pass only `spec` in the configuration request, but later we can
9 : /// extend it and something like `restart: bool` or something else. So put
10 : /// `spec` into a struct initially to be more flexible in the future.
11 0 : #[derive(Deserialize, Debug)]
12 : pub struct ConfigurationRequest {
13 : pub spec: ComputeSpec,
14 : }
|