lichess_api/model/oauth/
revoke.rs

1use crate::model::Request;
2use serde::Serialize;
3
4#[derive(Default, Clone, Debug, Serialize)]
5pub struct DeleteQuery;
6
7pub type DeleteRequest = Request<DeleteQuery>;
8
9impl DeleteRequest {
10    pub fn new() -> Self {
11        let path = format!("/api/token");
12        Self::delete(path, None, None, None)
13    }
14}