diff options
author | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-01-15 17:28:22 +0100 |
---|---|---|
committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-01-15 17:28:22 +0100 |
commit | 1758605f7b25fa125c7a2a6b5c5cc94b9f5849fa (patch) | |
tree | 1caa799426da83e9e78e01306b0a41374b5558a9 | |
parent | 746fb5818ac77b1261ab11466f6fed2e279baaec (diff) |
Allow users to generate own data
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | src/vobject/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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(), |