1 |
use serde::{Deserialize, Serialize};
|
2 |
|
3 |
use crate::model::{repository::RepositorySummary, user::User};
|
4 |
|
5 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
6 |
pub struct UserDisplayNameRequest {
|
7 |
pub user: User,
|
8 |
}
|
9 |
|
10 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
11 |
pub struct UserDisplayNameResponse {
|
12 |
pub display_name: Option<String>,
|
13 |
}
|
14 |
|
15 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
16 |
pub struct UserDisplayImageRequest {
|
17 |
pub user: User,
|
18 |
}
|
19 |
|
20 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
21 |
pub struct UserDisplayImageResponse {
|
22 |
pub image_url: Option<String>,
|
23 |
}
|
24 |
|
25 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
26 |
pub struct UserBioRequest {
|
27 |
pub user: User,
|
28 |
}
|
29 |
|
30 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
31 |
pub struct UserBioResponse {
|
32 |
pub bio: Option<String>,
|
33 |
}
|
34 |
|
35 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
36 |
pub struct UserRepositoriesRequest {
|
37 |
pub user: User,
|
38 |
}
|
39 |
|
40 |
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
41 |
pub struct UserRepositoriesResponse {
|
42 |
pub repositories: Vec<RepositorySummary>,
|
43 |
}
|
44 |
|