am_api/resource/
attributes.rs

1//! Common attributes
2
3use serde::{Deserialize, Serialize};
4
5/// Description attribute
6#[derive(Serialize, Deserialize, Default, Debug, Clone, PartialEq, Eq, Hash)]
7#[serde(rename_all = "camelCase", default)]
8pub struct DescriptionAttribute {
9    /// Short length description text
10    pub short: Option<String>,
11    /// Standard length description text
12    pub standard: String,
13}
14
15/// Title only attribute
16#[derive(Serialize, Deserialize, Default, Debug, Clone, PartialEq, Eq, Hash)]
17#[serde(rename_all = "camelCase", default)]
18pub struct TitleOnlyAttribute {
19    /// A localized title to display for the view
20    pub title: String,
21}