//! Shared wire contract for querying the Bedrock instance serving the request. use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize)] pub struct StatusRequest {} #[derive(Deserialize, Serialize)] pub struct DeploymentStatus { pub deployment: String, pub config_version: Option, pub storage_driver: String, pub read_only: bool, } bedrock_rpc::service! { "/admin/v1/deployment" { fn status(StatusRequest) -> DeploymentStatus; } }