LCOV - code coverage report
Current view: top level - libs/compute_api/src - requests.rs (source / functions) Coverage Total Hit
Test: a43a77853355b937a79c57b07a8f05607cf29e6c.info Lines: 0.0 % 1 0
Test Date: 2024-09-19 12:04:32 Functions: 0.0 % 12 0

            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              : }
        

Generated by: LCOV version 2.1-beta