20 lines
488 B
Rust
20 lines
488 B
Rust
//! 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<String>,
|
|
pub storage_driver: String,
|
|
pub read_only: bool,
|
|
}
|
|
|
|
bedrock_rpc::service! {
|
|
"/admin/v1/deployment" {
|
|
fn status(StatusRequest) -> DeploymentStatus;
|
|
}
|
|
}
|