pub enum DisplayType {
Image,
Video,
Audio,
Download,
}Variants§
Trait Implementations§
Source§impl Clone for DisplayType
impl Clone for DisplayType
Source§fn clone(&self) -> DisplayType
fn clone(&self) -> DisplayType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DisplayType
impl Debug for DisplayType
Source§impl Default for DisplayType
impl Default for DisplayType
Source§fn default() -> DisplayType
fn default() -> DisplayType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DisplayType
impl<'de> Deserialize<'de> for DisplayType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DisplayType
impl Display for DisplayType
Source§impl<'a> From<&'a DisplayType> for &'a str
impl<'a> From<&'a DisplayType> for &'a str
Source§fn from(value: &'a DisplayType) -> Self
fn from(value: &'a DisplayType) -> Self
Converts to this type from the input type.
Source§impl From<&str> for DisplayType
impl From<&str> for DisplayType
Source§impl From<DisplayType> for String
impl From<DisplayType> for String
Source§fn from(value: DisplayType) -> Self
fn from(value: DisplayType) -> Self
Converts to this type from the input type.
Source§impl Hash for DisplayType
impl Hash for DisplayType
Source§impl PartialEq for DisplayType
impl PartialEq for DisplayType
Source§impl PartialOrd for DisplayType
impl PartialOrd for DisplayType
Source§impl Serialize for DisplayType
impl Serialize for DisplayType
impl StructuralPartialEq for DisplayType
Source§impl ValueView for DisplayType
impl ValueView for DisplayType
Source§fn render(&self) -> DisplayCow<'_>
fn render(&self) -> DisplayCow<'_>
A
Display for a BoxedValue rendered for the user.Source§fn source(&self) -> DisplayCow<'_>
fn source(&self) -> DisplayCow<'_>
A
Display for a Value as source code.Source§fn query_state(&self, _state: State) -> bool
fn query_state(&self, _state: State) -> bool
Query the value’s state
Source§fn to_kstr(&self) -> KStringCow<'_>
fn to_kstr(&self) -> KStringCow<'_>
Interpret as a string.
Source§fn as_object(&self) -> Option<&dyn ObjectView>
fn as_object(&self) -> Option<&dyn ObjectView>
Extracts the object value if it is a object.
Auto Trait Implementations§
impl Freeze for DisplayType
impl RefUnwindSafe for DisplayType
impl Send for DisplayType
impl Sync for DisplayType
impl Unpin for DisplayType
impl UnsafeUnpin for DisplayType
impl UnwindSafe for DisplayType
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type