use serde::Deserialize;
use super::Endpoint;
pub struct Request;
impl Endpoint for Request {
const METHOD: reqwest::Method = reqwest::Method::GET;
fn endpoint(&self) -> &'static str {
"/ping/whoami"
}
}
#[derive(Debug, Deserialize, Clone)]
pub struct Response {
pub authenticated: bool,
pub client_id: String,
pub user_id: String,
}