pub struct TemplateContent {
pub id: String,
pub sections: HashMap<String, String>,
}Expand description
Use this template to generate the HTML content for the campaign.
Fields§
§id: StringThe id of the template to use.
sections: HashMap<String, String>Content for the sections of the template. Each key should be the unique mc:edit area name from the template.
Trait Implementations§
Source§impl Clone for TemplateContent
impl Clone for TemplateContent
Source§fn clone(&self) -> TemplateContent
fn clone(&self) -> TemplateContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateContent
impl Debug for TemplateContent
Source§impl Default for TemplateContent
impl Default for TemplateContent
Source§impl<'de> Deserialize<'de> for TemplateContent
impl<'de> Deserialize<'de> for TemplateContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TemplateContent
impl RefUnwindSafe for TemplateContent
impl Send for TemplateContent
impl Sync for TemplateContent
impl Unpin for TemplateContent
impl UnsafeUnpin for TemplateContent
impl UnwindSafe for TemplateContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more