Skip to main content

asana/model/
enum_option_insert_request.rs

1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
3pub struct EnumOptionInsertRequest {
4    ///An existing enum option within this custom field after which the new enum option should be inserted. Cannot be provided together with before_enum_option.
5    pub after_enum_option: String,
6    ///An existing enum option within this custom field before which the new enum option should be inserted. Cannot be provided together with after_enum_option.
7    pub before_enum_option: String,
8    ///The gid of the enum option to relocate.
9    pub enum_option: String,
10}
11impl std::fmt::Display for EnumOptionInsertRequest {
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
13        write!(f, "{}", serde_json::to_string(self).unwrap())
14    }
15}