27 lines
613 B
Rust
27 lines
613 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Serialize, Debug)]
|
|
pub struct WorkPackageWriterAssignee {
|
|
pub(crate) href: 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: Option<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,
|
|
}
|