diff --git a/lib/domain/libimagcontact/src/deser.rs b/lib/domain/libimagcontact/src/deser.rs index ec5e234d..e9d7efd4 100644 --- a/lib/domain/libimagcontact/src/deser.rs +++ b/lib/domain/libimagcontact/src/deser.rs @@ -162,3 +162,127 @@ impl From for DeserVcard { } } +impl DeserVcard { + + pub fn adr(&self) -> &Vec { + &self.adr + } + + pub fn anniversary(&self) -> Option<&String> { + self.anniversary.as_ref() + } + + pub fn bday(&self) -> Option<&String> { + self.bday.as_ref() + } + + pub fn categories(&self) -> &Vec { + &self.categories + } + + pub fn clientpidmap(&self) -> Option<&String> { + self.clientpidmap.as_ref() + } + + pub fn email(&self) -> &Vec { + &self.email + } + + pub fn fullname(&self) -> &Vec { + &self.fullname + } + + pub fn gender(&self) -> Option<&String> { + self.gender.as_ref() + } + + pub fn geo(&self) -> &Vec { + &self.geo + } + + pub fn impp(&self) -> &Vec { + &self.impp + } + + pub fn key(&self) -> &Vec { + &self.key + } + + pub fn lang(&self) -> &Vec { + &self.lang + } + + pub fn logo(&self) -> &Vec { + &self.logo + } + + pub fn member(&self) -> &Vec { + &self.member + } + + pub fn name(&self) -> Option<&String> { + self.name.as_ref() + } + + pub fn nickname(&self) -> &Vec { + &self.nickname + } + + pub fn note(&self) -> &Vec { + &self.note + } + + pub fn org(&self) -> &Vec { + &self.org + } + + pub fn photo(&self) -> &Vec { + &self.photo + } + + pub fn proid(&self) -> Option<&String> { + self.proid.as_ref() + } + + pub fn related(&self) -> &Vec { + &self.related + } + + pub fn rev(&self) -> Option<&String> { + self.rev.as_ref() + } + + pub fn role(&self) -> &Vec { + &self.role + } + + pub fn sound(&self) -> &Vec { + &self.sound + } + + pub fn tel(&self) -> &Vec { + &self.tel + } + + pub fn title(&self) -> &Vec { + &self.title + } + + pub fn tz(&self) -> &Vec { + &self.tz + } + + pub fn uid(&self) -> Option<&String> { + self.uid.as_ref() + } + + pub fn url(&self) -> &Vec { + &self.url + } + + pub fn version(&self) -> Option<&String> { + self.version.as_ref() + } + +} +