Skip to main content

Module vcard

Module vcard 

Source
Expand description

vCard (.vcf) parsing and encoding.

The encoder emits a minimal vCard 3.0 card; the parser is tolerant of vCard 2.1 / 3.0 / 4.0, accepts \n or \r\n line endings, unfolds folded lines, and ignores property parameters (e.g. the ;TYPE=cell in TEL;TYPE=cell:). The qrcode-rs facade uses this same module for its convenience constructor, so encode_vcard and VCard::parse stay symmetric.

Structs§

VCard
A parsed vCard contact recovered from a BEGIN:VCARDEND:VCARD payload.

Functions§

encode_vcard
Encodes a minimal vCard 3.0 card.