Struct vobject::vcard::Vcard

source ·
pub struct Vcard(_);

Implementations§

The Vcard object.

This type simply holds data and offers functions to access this data. It does not compute anything.

Parse a string to a Vcard object

Returns an error if the parsed text is not a Vcard (that means that an error is returned also if this is a valid icalendar!)

Helper for VcardBuilder::new()

Wrap a Component into a Vcard object, or don’t do it if the Component is not a Vcard.

Methods from Deref<Target = Component>§

Retrieve one property by key. Returns None if not exactly one property was found.

Retrieve properties by key. Returns an empty slice if key doesn’t exist.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Dereferences the value.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.