Struct xmpp_parsers::media_element::MediaElement
source · pub struct MediaElement {
pub width: Option<usize>,
pub height: Option<usize>,
pub uris: Vec<URI>,
}
Expand description
References a media element, to be used in data forms.
Fields§
§width: Option<usize>
The recommended display width in pixels.
height: Option<usize>
The recommended display height in pixels.
uris: Vec<URI>
A list of URIs referencing this media.
Trait Implementations§
source§impl AsXml for MediaElement
impl AsXml for MediaElement
source§impl Clone for MediaElement
impl Clone for MediaElement
source§fn clone(&self) -> MediaElement
fn clone(&self) -> MediaElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MediaElement
impl Debug for MediaElement
source§impl From<MediaElement> for Element
impl From<MediaElement> for Element
source§fn from(elem: MediaElement) -> Element
fn from(elem: MediaElement) -> Element
Converts to this type from the input type.
source§impl FromXml for MediaElement
impl FromXml for MediaElement
§type Builder = FromEventsViaElement<MediaElement>
type Builder = FromEventsViaElement<MediaElement>
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 PartialEq for MediaElement
impl PartialEq for MediaElement
source§fn eq(&self, other: &MediaElement) -> bool
fn eq(&self, other: &MediaElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Element> for MediaElement
impl TryFrom<Element> for MediaElement
§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
source§fn try_from(elem: Element) -> Result<MediaElement, FromElementError>
fn try_from(elem: Element) -> Result<MediaElement, FromElementError>
Performs the conversion.
impl StructuralPartialEq for MediaElement
Auto Trait Implementations§
impl Freeze for MediaElement
impl RefUnwindSafe for MediaElement
impl Send for MediaElement
impl Sync for MediaElement
impl Unpin for MediaElement
impl UnwindSafe for MediaElement
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)