useserde::Serialize;usesuper::Authed;usesuper::models::{SignInResult, User};usecrate::error::Result;#[derive(Serialize)]structEmptyBody{}impl<'a>Authed<'a>{/// Logs out and revokes the active token via `POST /api/auth/logout`.
pub async fnlogout(&self)->Result<()>{self.post_unit("/auth/logout",&EmptyBody {}).await
}/// Fetches the authenticated user's profile via `GET /api/user`.
pub async fncurrent_user(&self)->Result<User>{self.get_envelope("/user").await
}/// Performs the daily check-in reward via `POST /api/user/sign`.
pub async fndaily_sign_in(&self)->Result<SignInResult>{self.post_envelope("/user/sign",&EmptyBody {}).await
}}