LCOV - code coverage report
Current view: top level - libs/compute_api/src - requests.rs (source / functions) Coverage Total Hit
Test: 07bee600374ccd486c69370d0972d9035964fe68.info Lines: 0.0 % 3 0
Test Date: 2025-02-20 13:11:02 Functions: 0.0 % 24 0

            Line data    Source code
       1              : //! Structs representing the JSON formats used in the compute_ctl's HTTP API.
       2              : use crate::{
       3              :     privilege::Privilege,
       4              :     responses::ComputeCtlConfig,
       5              :     spec::{ComputeSpec, ExtVersion, PgIdent},
       6              : };
       7              : use serde::{Deserialize, Serialize};
       8              : 
       9              : /// Request of the /configure API
      10              : ///
      11              : /// We now pass only `spec` in the configuration request, but later we can
      12              : /// extend it and something like `restart: bool` or something else. So put
      13              : /// `spec` into a struct initially to be more flexible in the future.
      14            0 : #[derive(Debug, Deserialize, Serialize)]
      15              : pub struct ConfigurationRequest {
      16              :     pub spec: ComputeSpec,
      17              :     pub compute_ctl_config: ComputeCtlConfig,
      18              : }
      19              : 
      20            0 : #[derive(Deserialize, Debug)]
      21              : pub struct ExtensionInstallRequest {
      22              :     pub extension: PgIdent,
      23              :     pub database: PgIdent,
      24              :     pub version: ExtVersion,
      25              : }
      26              : 
      27            0 : #[derive(Deserialize, Debug)]
      28              : pub struct SetRoleGrantsRequest {
      29              :     pub database: PgIdent,
      30              :     pub schema: PgIdent,
      31              :     pub privileges: Vec<Privilege>,
      32              :     pub role: PgIdent,
      33              : }
        

Generated by: LCOV version 2.1-beta