pub struct Thumbnail {
pub uri: String,
pub media_type: Option<String>,
pub width: Option<NonZeroU16>,
pub height: Option<NonZeroU16>,
}
Expand description
A Jingle thumbnail.
Fields§
§uri: String
The URI of the thumbnail.
media_type: Option<String>
The media type of the thumbnail.
width: Option<NonZeroU16>
The width of the thumbnail.
height: Option<NonZeroU16>
The height of the thumbnail.
Trait Implementations§
Source§impl AsXml for Thumbnail
impl AsXml for Thumbnail
Source§impl FromXml for Thumbnail
impl FromXml for Thumbnail
Source§type Builder = ThumbnailFromXmlBuilder
type Builder = ThumbnailFromXmlBuilder
A builder type used to construct the element. Read more
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 Thumbnail
impl TryFrom<Element> for Thumbnail
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Thumbnail
Auto Trait Implementations§
impl Freeze for Thumbnail
impl RefUnwindSafe for Thumbnail
impl Send for Thumbnail
impl Sync for Thumbnail
impl Unpin for Thumbnail
impl UnwindSafe for Thumbnail
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