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(other: MediaElement) -> Self
fn from(other: MediaElement) -> Self
Converts to this type from the input type.
source§impl FromXml for MediaElement
impl FromXml for MediaElement
§type Builder = MediaElementFromXmlBuilder
type Builder = MediaElementFromXmlBuilder
A builder type used to construct the element. Read more
source§fn from_events(
name: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: 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§impl TryFrom<Element> for MediaElement
impl TryFrom<Element> for MediaElement
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
)