Initial tests.

This commit is contained in:
Mauro D
2022-05-12 14:48:26 +00:00
parent e10834ecaa
commit a23d97e3a4
21 changed files with 929 additions and 326 deletions

View File

@@ -1,6 +1,8 @@
pub mod get;
pub mod set;
use std::fmt::Display;
use crate::core::set::date_not_set;
use crate::core::set::string_not_set;
use crate::Get;
@@ -61,3 +63,17 @@ pub enum Property {
#[serde(rename = "htmlBody")]
HtmlBody,
}
impl Display for Property {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Property::Id => write!(f, "id"),
Property::IsEnabled => write!(f, "isEnabled"),
Property::FromDate => write!(f, "fromDate"),
Property::ToDate => write!(f, "toDate"),
Property::Subject => write!(f, "subject"),
Property::TextBody => write!(f, "textBody"),
Property::HtmlBody => write!(f, "htmlBody"),
}
}
}