pub struct VCard {
pub photo: Option<Photo>,
pub payloads: Vec<Element>,
}
Expand description
A <vCard>
element; only the <PHOTO>
element is supported for this legacy vCard ; the rest is ignored.
Fields§
§photo: Option<Photo>
A photo element.
payloads: Vec<Element>
Every other element in the vCard.
Trait Implementations§
Source§impl AsXml for VCard
impl AsXml for VCard
Source§impl FromXml for VCard
impl FromXml for VCard
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if
Self
may be parsed from
a given XML element. Read moreSource§impl TryFrom<Element> for VCard
impl TryFrom<Element> for VCard
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl IqResultPayload for VCard
impl IqSetPayload for VCard
impl StructuralPartialEq for VCard
Auto Trait Implementations§
impl Freeze for VCard
impl RefUnwindSafe for VCard
impl Send for VCard
impl Sync for VCard
impl Unpin for VCard
impl UnwindSafe for VCard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more