Struct xmpp_parsers::vcard::Type
source · pub struct Type {
pub data: <Text as Codec>::Decoded,
}
Expand description
The type of the photo.
Fields§
§data: <Text as Codec>::Decoded
The type as a plain text string; at least “image/jpeg”, “image/gif” and “image/png” SHOULD be supported.
Trait Implementations§
source§impl FromXml for Type
impl FromXml for Type
§type Builder = FromEventsViaElement<Type>
type Builder = FromEventsViaElement<Type>
A builder type used to construct the element. Read more
source§fn from_events(
qname: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( qname: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
source§impl IntoXml for Type
impl IntoXml for Type
§type EventIter = IntoEventsViaElement
type EventIter = IntoEventsViaElement
The iterator type. Read more
source§fn into_event_iter(self) -> Result<Self::EventIter, Error>
fn into_event_iter(self) -> Result<Self::EventIter, Error>
Return an iterator which emits the contents of the struct or enum as
serialisable
rxml::Event
items.source§impl PartialEq for Type
impl PartialEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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