use serde::{Deserialize, Serialize}; use super::instance::Instance; #[derive(Clone, Debug, Hash, PartialEq, Eq, Serialize, Deserialize)] pub struct User { pub username: String, pub instance: Instance, } impl ToString for User { fn to_string(&self) -> String { format!("{}:{}", self.username, self.instance.url) } }