Skip to main content

wekan_cli/command_result/
profiles.rs

1use serde::Serialize;
2
3#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
4pub struct ProfileItem {
5    pub name: String,
6    pub server: String,
7    pub active: bool,
8}
9
10#[derive(Debug, Eq, PartialEq, Serialize)]
11pub struct ProfileListSuccess {
12    pub active_profile: Option<String>,
13    pub profiles: Vec<ProfileItem>,
14}
15
16#[derive(Debug, Eq, PartialEq, Serialize)]
17pub struct ProfileRemoveSuccess {
18    pub name: String,
19    pub server: String,
20    pub removed: bool,
21    pub active_profile: Option<String>,
22}