summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-15 17:28:22 +0100
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-15 17:28:22 +0100
commit1758605f7b25fa125c7a2a6b5c5cc94b9f5849fa (patch)
tree1caa799426da83e9e78e01306b0a41374b5558a9
parent746fb5818ac77b1261ab11466f6fed2e279baaec (diff)
Allow users to generate own data
-rw-r--r--README.md4
-rw-r--r--src/vobject/lib.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index d5acdca..1c3897a 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-# VObject parser for Rust
+# VObject parser and generator for Rust
[![Build Status](https://travis-ci.org/untitaker/rust-vobject.svg?branch=master)](https://travis-ci.org/untitaker/rust-vobject)
-This is a parser and writer for the
+This is a parser and generator for the
[vCard](https://tools.ietf.org/html/rfc6350) and
[iCalendar](https://tools.ietf.org/html/rfc5545) formats.
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs
index 4eb6a89..fa28c7f 100644
--- a/src/vobject/lib.rs
+++ b/src/vobject/lib.rs
@@ -22,7 +22,7 @@ pub struct Property {
}
impl Property {
- fn new(params: HashMap<String, String>, raw_value: String, prop_group: Option<String>) -> Property {
+ pub fn new(params: HashMap<String, String>, raw_value: String, prop_group: Option<String>) -> Property {
Property {
params: params,
raw_value: raw_value,
@@ -49,7 +49,7 @@ pub struct Component {
}
impl Component {
- fn new(name: String) -> Component {
+ pub fn new(name: String) -> Component {
Component {
name: name,
props: HashMap::new(),