#![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 Options {
#[serde(skip_serializing_if = "Option::is_none")]
pub solution: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub solution_version: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub vendor: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub restapi_specs_version: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub conformance_profile: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoints: Option<Vec<String>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OptionsParams {
#[serde(rename = "Accept")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept: Option<String>,
}
#[async_trait::async_trait]
pub trait SystemApi {
async fn options(
&self,
params: OptionsParams,
) -> Result<Options, crate::rest::runtime::ApiError> {
Err(crate::rest::runtime::ApiError::NotImplemented)
}
}
pub const ROUTES: &[(&str, &str, &str)] = &[("OPTIONS", "/", "options")];