mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-31 03:50:37 +00:00
22 lines
633 B
Rust
22 lines
633 B
Rust
//! Structs representing the JSON formats used in the compute_ctl's HTTP API.
|
|
|
|
use crate::spec::ComputeSpec;
|
|
use serde::Deserialize;
|
|
|
|
/// Request of the /configure API
|
|
///
|
|
/// We now pass only `spec` in the configuration request, but later we can
|
|
/// extend it and something like `restart: bool` or something else. So put
|
|
/// `spec` into a struct initially to be more flexible in the future.
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct ConfigurationRequest {
|
|
pub spec: ComputeSpec,
|
|
}
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct ExtensionInstallRequest {
|
|
pub extension: String,
|
|
pub database: String,
|
|
pub version: String,
|
|
}
|