backlog_client/types/
space.rs

1use serde::{Deserialize, Serialize};
2
3/// https://developer.nulab.com/docs/backlog/api/2/get-space/
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct Space {
6    #[serde(rename = "spaceKey")]
7    pub space_key: String,
8    pub name: String,
9    #[serde(rename = "ownerId")]
10    pub owner_id: u32,
11    pub lang: String,
12    pub timezone: String,
13    #[serde(rename = "reportSendTime")]
14    pub report_send_time: String,
15    #[serde(rename = "textFormattingRule")]
16    pub text_formatting_rule: TextFormattingRule,
17    pub created: String,
18    pub updated: String,
19}
20
21#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
22pub enum TextFormattingRule {
23    #[serde(rename = "backlog")]
24    Backlog,
25    #[serde(rename = "markdown")]
26    Markdown,
27}
28
29#[derive(Debug, Clone, Serialize, Deserialize)]
30pub struct Notifications {
31    pub content: String,
32    pub updated: String,
33}