LCOV - code coverage report
Current view: top level - libs/compute_api/src - requests.rs (source / functions) Coverage Total Hit
Test: 050dd70dd490b28fffe527eae9fb8a1222b5c59c.info Lines: 0.0 % 1 0
Test Date: 2024-06-25 21:28:46 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