1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use serde::Deserialize;

use crate::FromResponse;

#[derive(Debug, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CheckUsernameAvailableResponse {
    pub available: bool,
}

impl FromResponse for CheckUsernameAvailableResponse {
    type Response = Self;

    fn from_response(value: Self::Response) -> Self {
        value
    }
}