Make all parsed types implement Clone.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-21 00:41:15 +01:00
commit 62d9385728
9 changed files with 21 additions and 21 deletions

View file

@ -9,7 +9,7 @@ use ns;
use media_element::{MediaElement, parse_media_element};
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Field {
pub var: String,
pub type_: String, // TODO: use an enum here.
@ -18,7 +18,7 @@ pub struct Field {
pub media: Vec<MediaElement>,
}
#[derive(Debug, PartialEq)]
#[derive(Debug, Clone, PartialEq)]
pub enum DataFormType {
Cancel,
Form,
@ -44,7 +44,7 @@ impl FromStr for DataFormType {
}
}
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct DataForm {
pub type_: DataFormType,
pub form_type: Option<String>,