summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2015-03-14 18:48:08 +0100
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-03-14 18:48:08 +0100
commit019a52aa22dd3159e44a4b77eb7924969a9e6c91 (patch)
treeeb44f0cb38e758ae32af5c46b23bcb7af04917c1
parentc3b61bef57eb88b98cc2a882569a2c71cc69b9fa (diff)
impl Clone for Property
-rw-r--r--src/vobject/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs
index f5b1b71..546fca6 100644
--- a/src/vobject/lib.rs
+++ b/src/vobject/lib.rs
@@ -39,6 +39,15 @@ impl Property {
}
}
+impl Clone for Property {
+ fn clone(&self) -> Self {
+ Property {
+ params: self.params.clone(),
+ raw_value: self.raw_value.clone(),
+ prop_group: self.prop_group.clone()
+ }
+ }
+}
pub struct Component {
/// The name of the component, such as `VCARD` or `VEVENT`.