use std::collections::HashMap; use serde::{Deserialize, Serialize}; use crate::model::{repository::RepositorySummary, user::User}; #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserDisplayNameRequest { pub user: User, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserDisplayNameResponse { pub display_name: Option, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserDisplayImageRequest { pub user: User, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserDisplayImageResponse { pub image_url: Option, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserBioRequest { pub user: User, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserBioResponse { pub bio: Option, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserRepositoriesRequest { pub user: User, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserRepositoriesResponse { pub repositories: Vec, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserSettingsRequest { pub user: User, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserSettingsResponse { pub settings: HashMap, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserWriteSettingsRequest { pub user: User, pub settings: Vec<(String, serde_json::Value)>, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct UserWriteSettingsResponse { // IDK? }