pub struct Vcard(_);
Implementations§
source§impl Vcard
impl Vcard
The Vcard object.
This type simply holds data and offers functions to access this data. It does not compute anything.
sourcepub fn build(s: &str) -> Result<Vcard>
pub fn build(s: &str) -> Result<Vcard>
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!)
sourcepub fn builder() -> VcardBuilder
pub fn builder() -> VcardBuilder
Helper for VcardBuilder::new()
sourcepub fn from_component(c: Component) -> RResult<Vcard, Component>
pub fn from_component(c: Component) -> RResult<Vcard, Component>
Wrap a Component into a Vcard object, or don’t do it if the Component is not a Vcard.