shrike 0.1.6

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ReportGetLatestReportParams {}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ReportGetLatestReportOutput {
    pub report: crate::api::tools::ozone::ReportDefsReportView,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ReportGetLatestReport — Get the most recent report.
pub async fn report_get_latest_report(
    client: &crate::xrpc::Client,
    params: &ReportGetLatestReportParams,
) -> Result<ReportGetLatestReportOutput, crate::xrpc::Error> {
    client
        .query("tools.ozone.report.getLatestReport", params)
        .await
}