40 lines
1.1 KiB
Rust
40 lines
1.1 KiB
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct CreationEntryConfigResponse {
|
|
pub start_card: CreationEntryStartCardResponse,
|
|
pub type_modal: CreationEntryTypeModalResponse,
|
|
pub creation_types: Vec<CreationEntryTypeResponse>,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct CreationEntryStartCardResponse {
|
|
pub title: String,
|
|
pub description: String,
|
|
pub idle_badge: String,
|
|
pub busy_badge: String,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct CreationEntryTypeModalResponse {
|
|
pub title: String,
|
|
pub description: String,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct CreationEntryTypeResponse {
|
|
pub id: String,
|
|
pub title: String,
|
|
pub subtitle: String,
|
|
pub badge: String,
|
|
pub image_src: String,
|
|
pub visible: bool,
|
|
pub open: bool,
|
|
pub sort_order: i32,
|
|
pub updated_at_micros: i64,
|
|
}
|