Module ical::parser::vcard

source ·
Expand description

Parse a VCARD address book.

Wrap the result of the PropertyParser into components.

Each component contains properties (ie: Property) or sub-components.

  • The VcardParser return VcardContact objects.

Examples

[dependencies.ical]
version = "0.3.*"
default-features = false
features = ["vcard-parser"]
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::VcardParser::new(buf);

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

Structs

Reader returning VcardContact object from a BufRead.