shrike 0.1.6

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

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueueRouteReportsInput {
    /// End of report ID range (inclusive). Difference between start and end must be less than 5,000.
    pub end_report_id: i64,
    /// Start of report ID range (inclusive).
    pub start_report_id: i64,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueueRouteReportsOutput {
    /// The number of reports assigned to a queue.
    pub assigned: i64,
    /// The number of reports with no matching queue.
    pub unmatched: i64,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// QueueRouteReports — Route reports within an ID range to matching queues based.
pub async fn queue_route_reports(
    client: &crate::xrpc::Client,
    input: &QueueRouteReportsInput,
) -> Result<QueueRouteReportsOutput, crate::xrpc::Error> {
    client
        .procedure("tools.ozone.queue.routeReports", input)
        .await
}