cl-cli/src/openproject/work.rs

27 lines
613 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Serialize, Debug)]
pub struct WorkPackageWriterAssignee {
pub(crate) href: Option<String>,
}
#[derive(Serialize, Debug)]
pub struct WorkPackageWriter {
pub(crate) subject: String,
#[serde(alias = "type")]
pub(crate) work_type: String,
pub(crate) description: DescriptionWriter,
pub assignee: WorkPackageWriterAssignee,
}
#[derive(Serialize, Debug)]
pub struct DescriptionWriter {
pub(crate) format: String,
pub(crate) raw: String,
}
#[derive(Deserialize, Debug)]
pub struct WorkPackage {
pub id: u64,
pub subject: String,
}