Struct contack::read_write::vcard::VCard[][src]

pub struct VCard(pub Vec<Component>);
This is supported on crate feature read_write only.
Expand description

A VCard represents an individual vcard within a vcard file. For the most part this will represent Contact.

It implements display to allow you to convert it to a text form of VCard.

Tuple Fields

0: Vec<Component>

Implementations

Creates a new VCard

The vec of components does not need to include a BEGIN, END or VERSION.

Creates a vector of VCards from a string.

They are separated by END:VCARD\r\n.

Errors

Fails for the same reason as during the FromStr implementation.

Converts a slice to a String.

This creates many VCards separated by END:VCARD

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.