Module ical::property

source ·
Expand description

Parse the result of LineReader into parts.

Split the result of LineReader into property. A property contains:

  • A name formated in uppercase.
  • An optional list of parameters represented by a vector of (key/value) tuple . The key is formatted in uppercase and the value stay untouched.
  • A value stay untouched.

It work for both the Vcard and Ical format.

§Warning

The parsers PropertyParser only parse the content and set to uppercase the case-insensitive fields. No checks are made on the fields validity.

§Examples

[dependencies.ical]
version = "0.3.*"
default-features = false
features = ["property"]
extern crate ical;

use std::io::BufReader;
use std::fs::File;

let buf = BufReader::new(File::open("./tests/ressources/vcard_input.vcf")
    .unwrap());

let reader = ical::PropertyParser::from_reader(buf);

for line in reader {
    println!("{:?}", line);
}

Structs§

Enums§