#contact #vcard #conversion #convert

yanked contack_vcard

A simple library to convert Contack's Contact to VCard

0.1.7 Feb 24, 2021
0.1.6 Feb 21, 2021
0.1.2 Feb 19, 2021
0.1.1 Feb 19, 2021

#16 in #vcard

Download history 22/week @ 2024-02-25 3/week @ 2024-03-10 52/week @ 2024-03-31

55 downloads per month

MIT/Apache

18KB
547 lines

Contack vCard

Contack is a simple library for managing contacts in rust. Contack-vCard allows simple exporting to the vcard format. Here is an example

fn main() {
	// Creates a Contact
	let mut contact = contack::Contact::new (
   		contack::name::Name {
   			given : 		Some("John"),
   			additional : 	None,
   			family :		Some("Toohey"),
   			prefixes : 		None,
   			suffixes :		None,
   		}
	);
	// Sets the email
	contact.contact_information.push (
   		contack::contact_information::ContactInformation::new (
   			"john_t@mailo.com",
   			Email
   		)
	);
	// Turns it to a vCard
	let vcontact = contack_vcard::contack_to_vcard (
   		contact
	);
	// Prints it out
	println!("{}", vcontact);
   }
   ```

Dependencies

~26MB
~250K SLoC