misskey_api/endpoint/admin/
vacuum.rs

1use serde::Serialize;
2
3#[derive(Serialize, Debug, Clone)]
4#[serde(rename_all = "camelCase")]
5pub struct Request {
6    pub full: bool,
7    pub analyze: bool,
8}
9
10impl misskey_core::Request for Request {
11    type Response = ();
12    const ENDPOINT: &'static str = "admin/vacuum";
13}
14
15#[cfg(test)]
16mod tests {
17    use super::Request;
18    use crate::test::{ClientExt, TestClient};
19
20    #[tokio::test]
21    async fn request() {
22        let client = TestClient::new();
23        client
24            .admin
25            .test(Request {
26                full: true,
27                analyze: true,
28            })
29            .await;
30    }
31}