lodestone-parser/src/models/search/character.rs

19 lines
519 B
Rust
Raw Normal View History

2018-09-03 20:40:30 +00:00
use crate::models::character::GrandCompanyInfo;
use ffxiv_types::World;
2022-06-16 14:10:03 +00:00
#[cfg(feature = "with_serde")] use serde::{Deserialize, Serialize};
2018-09-03 20:40:30 +00:00
use url::Url;
#[derive(Debug)]
#[cfg_attr(feature = "with_serde", derive(Deserialize, Serialize))]
2018-09-03 20:40:30 +00:00
pub struct CharacterSearchItem {
pub id: u64,
pub name: String,
pub world: World,
pub grand_company: Option<GrandCompanyInfo>,
#[cfg_attr(feature = "with_serde", serde(with = "crate::util::serde::opt_u64_str"))]
2018-09-03 20:40:30 +00:00
pub free_company_id: Option<u64>,
pub face: Url,
}