2024-09-29 17:45:53 -04:00
|
|
|
use serde::Serialize;
|
|
|
|
|
|
|
|
#[derive(Default, Serialize)]
|
|
|
|
pub struct Currencies {
|
2024-10-05 12:26:12 -04:00
|
|
|
pub gil: u32,
|
2024-09-29 17:45:53 -04:00
|
|
|
}
|
|
|
|
|
2024-10-05 12:21:38 -04:00
|
|
|
#[derive(Default, Serialize)]
|
|
|
|
pub struct Appearance {
|
|
|
|
pub race: String,
|
|
|
|
pub gender: String,
|
2024-11-01 16:41:05 -04:00
|
|
|
pub model_type: i32,
|
2024-10-05 12:21:38 -04:00
|
|
|
pub height: i32,
|
2024-11-01 16:41:05 -04:00
|
|
|
pub tribe: String,
|
|
|
|
pub face_type: i32,
|
|
|
|
pub hair_style: i32,
|
|
|
|
pub has_highlights: bool,
|
|
|
|
pub skin_color: i32,
|
|
|
|
pub eye_color: i32,
|
|
|
|
pub hair_color: i32,
|
|
|
|
pub hair_color2: i32,
|
|
|
|
pub face_features: i32,
|
|
|
|
pub face_features_color: i32,
|
|
|
|
pub eyebrows: i32,
|
|
|
|
pub eye_color2: i32,
|
|
|
|
pub eye_shape: i32,
|
|
|
|
pub nose_shape: i32,
|
|
|
|
pub jaw_shape: i32,
|
|
|
|
pub lip_style: i32,
|
|
|
|
pub lip_color: i32,
|
|
|
|
pub race_feature_size: i32,
|
|
|
|
pub race_feature_type: i32,
|
|
|
|
pub bust_size: i32,
|
|
|
|
pub facepaint: i32,
|
|
|
|
pub facepaint_color: i32,
|
2024-10-05 12:21:38 -04:00
|
|
|
}
|
|
|
|
|
2024-09-29 17:45:53 -04:00
|
|
|
#[derive(Default, Serialize)]
|
|
|
|
pub struct CharacterData {
|
|
|
|
pub name: String,
|
|
|
|
pub world: String,
|
|
|
|
pub data_center: String,
|
|
|
|
pub city_state: String,
|
|
|
|
pub nameday: String,
|
|
|
|
pub guardian: String,
|
|
|
|
pub currencies: Currencies,
|
2024-10-05 12:10:31 -04:00
|
|
|
pub playtime: String,
|
2024-10-05 12:21:38 -04:00
|
|
|
pub appearance: Appearance,
|
2024-10-05 12:36:36 -04:00
|
|
|
pub is_battle_mentor: bool,
|
|
|
|
pub is_trade_mentor: bool,
|
|
|
|
pub is_novice: bool,
|
|
|
|
pub is_returner: bool,
|
|
|
|
pub player_commendations: i32,
|
2024-09-29 17:45:53 -04:00
|
|
|
|
|
|
|
#[serde(skip)]
|
|
|
|
pub face_url: String,
|
|
|
|
#[serde(skip)]
|
|
|
|
pub portrait_url: String,
|
|
|
|
}
|