Add getters for DeserVcard helper type
This commit is contained in:
parent
abc142f4b5
commit
56c1b78d93
1 changed files with 124 additions and 0 deletions
|
@ -162,3 +162,127 @@ impl From<Vcard> for DeserVcard {
|
|||
}
|
||||
}
|
||||
|
||||
impl DeserVcard {
|
||||
|
||||
pub fn adr(&self) -> &Vec<String> {
|
||||
&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<String> {
|
||||
&self.categories
|
||||
}
|
||||
|
||||
pub fn clientpidmap(&self) -> Option<&String> {
|
||||
self.clientpidmap.as_ref()
|
||||
}
|
||||
|
||||
pub fn email(&self) -> &Vec<String> {
|
||||
&self.email
|
||||
}
|
||||
|
||||
pub fn fullname(&self) -> &Vec<String> {
|
||||
&self.fullname
|
||||
}
|
||||
|
||||
pub fn gender(&self) -> Option<&String> {
|
||||
self.gender.as_ref()
|
||||
}
|
||||
|
||||
pub fn geo(&self) -> &Vec<String> {
|
||||
&self.geo
|
||||
}
|
||||
|
||||
pub fn impp(&self) -> &Vec<String> {
|
||||
&self.impp
|
||||
}
|
||||
|
||||
pub fn key(&self) -> &Vec<String> {
|
||||
&self.key
|
||||
}
|
||||
|
||||
pub fn lang(&self) -> &Vec<String> {
|
||||
&self.lang
|
||||
}
|
||||
|
||||
pub fn logo(&self) -> &Vec<String> {
|
||||
&self.logo
|
||||
}
|
||||
|
||||
pub fn member(&self) -> &Vec<String> {
|
||||
&self.member
|
||||
}
|
||||
|
||||
pub fn name(&self) -> Option<&String> {
|
||||
self.name.as_ref()
|
||||
}
|
||||
|
||||
pub fn nickname(&self) -> &Vec<String> {
|
||||
&self.nickname
|
||||
}
|
||||
|
||||
pub fn note(&self) -> &Vec<String> {
|
||||
&self.note
|
||||
}
|
||||
|
||||
pub fn org(&self) -> &Vec<String> {
|
||||
&self.org
|
||||
}
|
||||
|
||||
pub fn photo(&self) -> &Vec<String> {
|
||||
&self.photo
|
||||
}
|
||||
|
||||
pub fn proid(&self) -> Option<&String> {
|
||||
self.proid.as_ref()
|
||||
}
|
||||
|
||||
pub fn related(&self) -> &Vec<String> {
|
||||
&self.related
|
||||
}
|
||||
|
||||
pub fn rev(&self) -> Option<&String> {
|
||||
self.rev.as_ref()
|
||||
}
|
||||
|
||||
pub fn role(&self) -> &Vec<String> {
|
||||
&self.role
|
||||
}
|
||||
|
||||
pub fn sound(&self) -> &Vec<String> {
|
||||
&self.sound
|
||||
}
|
||||
|
||||
pub fn tel(&self) -> &Vec<String> {
|
||||
&self.tel
|
||||
}
|
||||
|
||||
pub fn title(&self) -> &Vec<String> {
|
||||
&self.title
|
||||
}
|
||||
|
||||
pub fn tz(&self) -> &Vec<String> {
|
||||
&self.tz
|
||||
}
|
||||
|
||||
pub fn uid(&self) -> Option<&String> {
|
||||
self.uid.as_ref()
|
||||
}
|
||||
|
||||
pub fn url(&self) -> &Vec<String> {
|
||||
&self.url
|
||||
}
|
||||
|
||||
pub fn version(&self) -> Option<&String> {
|
||||
self.version.as_ref()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue