#![allow(
clippy::all,
clippy::pedantic,
clippy::nursery,
dead_code,
unused_variables,
reason = "mechanically generated contract text: the OAS is emitted in full (every DTO, param struct and route, whether or not this workspace consumes it yet), so style and dead-code lints do not apply — the hand-written runtime and the implementing adapter carry the lint bar"
)]
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AdminEhrDeleteParams {
pub ehr_id: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AdminEhrDeleteAllParams {
#[serde(skip_serializing_if = "Option::is_none")]
pub ehr_id: Option<String>,
}
#[async_trait::async_trait]
pub trait AdminApi {
async fn admin_ehr_delete(
&self,
params: AdminEhrDeleteParams,
) -> Result<(), crate::rest::runtime::ApiError> {
Err(crate::rest::runtime::ApiError::NotImplemented)
}
async fn admin_ehr_delete_all(
&self,
params: AdminEhrDeleteAllParams,
) -> Result<(), crate::rest::runtime::ApiError> {
Err(crate::rest::runtime::ApiError::NotImplemented)
}
}
pub const ROUTES: &[(&str, &str, &str)] = &[
("DELETE", "/admin/ehr/{ehr_id}", "admin_ehr_delete"),
("DELETE", "/admin/ehr/all{?ehr_id*}", "admin_ehr_delete_all"),
];