#[derive(Debug, Deserialize)]
pub struct APIStatusResponse {
#[serde(rename="minecraft.net")]
pub minecraftnet: String,
#[serde(rename="session.minecraft.net")]
pub sessionminecraftnet: String,
#[serde(rename="account.mojang.com")]
pub accountmojangcom: String,
#[serde(rename="auth.mojang.com")]
pub authmojangcom: String,
#[serde(rename="skins.minecraft.net")]
pub skinsminecraftnet: String,
#[serde(rename="authserver.mojang.com")]
pub authservermojangcom: String,
#[serde(rename="sessionserver.mojang.com")]
pub sessionservermojangcom: String,
#[serde(rename="api.mojang.com")]
pub apimojangcom: String,
#[serde(rename="textures.minecraft.net")]
pub texturesminecraftnet: String,
#[serde(rename="mojang.com")]
pub mojangcom: String,
}
#[derive(Debug, Deserialize)]
pub struct NameUUID {
pub id: String,
pub name: String,
#[serde(default="always_false")]
pub legacy: bool,
#[serde(default="always_false")]
pub demo: bool,
}
#[derive(Debug, Deserialize)]
pub struct Profile {
pub id: String,
pub name: String,
pub properties: Vec<ProfileProperties>,
}
#[derive(Debug, Deserialize)]
pub struct ProfileProperties {
pub name: String,
pub value: String,
pub signature: Option<String>,
}
#[derive(Debug, Deserialize)]
#[allow(non_snake_case)]
pub struct StatisticsResponse {
pub total: u64,
pub last24h: u64,
pub saleVelocityPerSeconds: f64,
}
#[derive(Debug, Deserialize)]
#[allow(non_snake_case)]
pub struct NameHistory {
pub name: String,
pub changedToAt: Option<u64>,
}
#[derive(Debug, Deserialize)]
pub struct AuthenticationResponse {
pub accessToken: String,
pub clientToken: Option<String>,
pub availableProfiles: Option<Vec<NameUUID>>,
pub selectedProfile: NameUUID,
}
#[derive(Debug, Deserialize)]
pub struct SessionHasJoinedResponse {
id: String,
name: String,
properties: Vec<ProfileProperties>,
}
fn always_false() -> bool {
false
}