VcardBuilder

Struct VcardBuilder 

Source
pub struct VcardBuilder { /* private fields */ }
Expand description

A builder for building a Vcard object.

Implementations§

Source§

impl VcardBuilder

Source

pub fn new() -> Self

Source

pub fn build(self) -> Result<Vcard, VObjectError>

Source

pub fn with_adr( self, params: Parameters, pobox: Option<String>, ext: Option<String>, street: Option<String>, locality: Option<String>, region: Option<String>, code: Option<String>, country: Option<String>, ) -> Self

Source

pub fn with_anniversary(self, value: String) -> Self

Source

pub fn with_bday(self, params: Parameters, value: String) -> Self

Source

pub fn with_categories(self, org: Vec<String>) -> Self

Source

pub fn with_clientpidmap(self, raw: String) -> Self

Source

pub fn with_email(self, email: String) -> Self

Source

pub fn with_fullname(self, fullname: String) -> Self

Source

pub fn with_gender(self, params: Parameters, value: String) -> Self

Source

pub fn with_geo(self, uri: String) -> Self

Source

pub fn with_impp(self, uri: String) -> Self

Source

pub fn with_key(self, uri: String) -> Self

Source

pub fn with_lang(self, lang: String) -> Self

Source

pub fn with_member(self, uri: String) -> Self

Source

pub fn with_name( self, params: Parameters, surname: Option<String>, given_name: Option<String>, additional_name: Option<String>, honorific_prefixes: Option<String>, honorific_suffixes: Option<String>, ) -> Self

Source

pub fn with_nickname(self, params: Parameters, name: String) -> Self

Source

pub fn with_note(self, text: String) -> Self

Source

pub fn with_org(self, org: Vec<String>) -> Self

Source

pub fn with_photo(self, params: Parameters, param: String) -> Self

Source

pub fn with_proid(self, param: String) -> Self

Source

pub fn with_rev(self, timestamp: String) -> Self

Source

pub fn with_role(self, role: String) -> Self

Source

pub fn with_sound(self, uri: String) -> Self

Source

pub fn with_tel(self, params: Parameters, value: String) -> Self

Source

pub fn with_title(self, title: String) -> Self

Source

pub fn with_tz(self, tz: String) -> Self

Source

pub fn with_uid(self, uri: String) -> Self

Source

pub fn with_url(self, uri: String) -> Self

Source

pub fn with_version(self, version: String) -> Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.