pub enum Asset {
Item(AssetItem),
Image(Image),
Video(Video),
Audio(Audio),
Mixin(Mixin),
}Expand description
An individual asset or mixin
Variants§
Implementations§
Trait Implementations§
Source§impl Htmlify for Asset
impl Htmlify for Asset
Source§fn tag(&self) -> Cow<'static, str>
fn tag(&self) -> Cow<'static, str>
Sets the HTML tag associated when converting this to an element.
Source§fn attributes(&self) -> Vec<Attribute>
fn attributes(&self) -> Vec<Attribute>
Sets the attributes to include when converting this to an element.
Source§fn as_raw_html(&self) -> String
fn as_raw_html(&self) -> String
Convert this to a raw string of HTML
Source§fn inner_html_as_string(&self) -> String
fn inner_html_as_string(&self) -> String
Stringifies the inner HTML
Source§fn as_element(&self) -> Option<Element>
fn as_element(&self) -> Option<Element>
Convert this into a web_sys::Element
Source§fn as_yew_node(&self) -> VNode
fn as_yew_node(&self) -> VNode
Convert this into ::yew::Html
impl StructuralPartialEq for Asset
Auto Trait Implementations§
impl Freeze for Asset
impl !RefUnwindSafe for Asset
impl !Send for Asset
impl !Sync for Asset
impl Unpin for Asset
impl !UnwindSafe for Asset
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.