use crate::models::GrandCompany; use chrono::{DateTime, Utc}; use ffxiv_types::World; use url::Url; #[derive(Debug, Serialize, Deserialize)] pub struct FreeCompanySearchItem { #[serde(with = "crate::util::serde::u64_str")] pub id: u64, pub name: String, pub world: World, #[serde(with = "crate::util::serde::multi_url")] pub crest: Vec, pub grand_company: GrandCompany, pub active_members: u16, pub estate_built: bool, pub formed: DateTime, pub active: Active, pub recruitment: RecruitmentStatus, } ffxiv_enum!(Active { Always => "always", Weekdays => "weekdays", Weekends => "weekends", NotSpecified => "not specified", }); ffxiv_enum!(RecruitmentStatus { Open => "open", Closed => "closed", });