Skip to main content

args_api/endpoint/auth/account/
add_user_email.rs

1use serde::{Deserialize, Serialize};
2
3use crate::endpoint::Endpoint;
4
5pub struct AddUserEmail;
6
7impl Endpoint for AddUserEmail {
8    const PATH: &'static str = "/auth/account/add-email";
9    const METHOD: http::Method = http::Method::POST;
10
11    type Request = AddUserEmailRequest;
12    type Response = ();
13}
14
15#[derive(ApiRequest, Debug, Serialize, Deserialize)]
16pub struct AddUserEmailRequest {
17    pub email: String,
18}