Enum streamduck_core::modules::components::UIFieldValue
source · [−]pub enum UIFieldValue<V> {
Show 18 variants
Header,
Label(String),
InputFieldFloat(f32),
InputFieldInteger(i32),
InputFieldString(String),
InputFieldFloat2(f32, f32),
InputFieldInteger2(i32, i32),
InputFieldUnsignedInteger(u32),
ValueSliderFloat(f32),
ValueSliderInteger(i32),
Collapsable(Vec<V>),
Array(Vec<Vec<V>>),
Choice(String),
Checkbox(bool),
Color(u8, u8, u8, u8),
ImageData(String),
ExistingImage(String),
Font(String),
}
Expand description
UI Field value, current state of the settings
Variants
Header
Displays a header for separation reasons
Label(String)
Displays text
InputFieldFloat(f32)
Text field that accepts float values
InputFieldInteger(i32)
Text field that accepts integer values
InputFieldString(String)
Text field that accepts strings
InputFieldFloat2(f32, f32)
Text field that accepts 2 float values
InputFieldInteger2(i32, i32)
Text field that accepts 2 integer values
InputFieldUnsignedInteger(u32)
Text field that accepts only positive integer values
ValueSliderFloat(f32)
Float slider of specified bounds
ValueSliderInteger(i32)
Integer slider of specified bounds
Collapsable(Vec<V>)
Collapsable submenu
Array(Vec<Vec<V>>)
Array of menus
Choice(String)
Choice dropdown
Checkbox(bool)
Checkbox
Color(u8, u8, u8, u8)
Color picker
ImageData(String)
Image data encoded in base64
ExistingImage(String)
Image from image collection
Font(String)
Font name
Implementations
sourceimpl<V> UIFieldValue<V>
impl<V> UIFieldValue<V>
pub fn try_into_bool(&self) -> Result<bool, String>
pub fn try_into_f32(&self) -> Result<f32, String>
pub fn try_into_i32(&self) -> Result<i32, String>
pub fn try_into_u32(&self) -> Result<u32, String>
pub fn try_into_f32_f32(&self) -> Result<(f32, f32), String>
pub fn try_into_i32_i32(&self) -> Result<(i32, i32), String>
pub fn try_into_color(&self) -> Result<Color, String>
pub fn try_into_string(&self) -> Result<String, String>
Trait Implementations
sourceimpl<V: Clone> Clone for UIFieldValue<V>
impl<V: Clone> Clone for UIFieldValue<V>
sourcefn clone(&self) -> UIFieldValue<V>
fn clone(&self) -> UIFieldValue<V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<V: Debug> Debug for UIFieldValue<V>
impl<V: Debug> Debug for UIFieldValue<V>
sourceimpl<'de, V> Deserialize<'de> for UIFieldValue<V> where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for UIFieldValue<V> where
V: Deserialize<'de>,
sourcefn 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
sourceimpl From<UIFieldValue<UIPathValue>> for UIFieldValue<UIValue>
impl From<UIFieldValue<UIPathValue>> for UIFieldValue<UIValue>
sourcefn from(val: UIFieldValue<UIPathValue>) -> Self
fn from(val: UIFieldValue<UIPathValue>) -> Self
Converts to this type from the input type.
sourceimpl From<UIFieldValue<UIValue>> for UIFieldValue<UIPathValue>
impl From<UIFieldValue<UIValue>> for UIFieldValue<UIPathValue>
sourcefn from(val: UIFieldValue<UIValue>) -> Self
fn from(val: UIFieldValue<UIValue>) -> Self
Converts to this type from the input type.
sourceimpl<V> Into<UIFieldValue<V>> for Color
impl<V> Into<UIFieldValue<V>> for Color
From conversions
sourcefn into(self) -> UIFieldValue<V>
fn into(self) -> UIFieldValue<V>
Converts this type into the (usually inferred) input type.
sourceimpl<V> Into<UIFieldValue<V>> for &Color
impl<V> Into<UIFieldValue<V>> for &Color
sourcefn into(self) -> UIFieldValue<V>
fn into(self) -> UIFieldValue<V>
Converts this type into the (usually inferred) input type.
sourceimpl<V> Serialize for UIFieldValue<V> where
V: Serialize,
impl<V> Serialize for UIFieldValue<V> where
V: Serialize,
sourceimpl<V> TryInto<PathBuf> for UIFieldValue<V>
impl<V> TryInto<PathBuf> for UIFieldValue<V>
sourceimpl<V> TryInto<PathBuf> for &UIFieldValue<V>
impl<V> TryInto<PathBuf> for &UIFieldValue<V>
sourceimpl<V> TryInto<String> for UIFieldValue<V>
impl<V> TryInto<String> for UIFieldValue<V>
sourceimpl<V> TryInto<String> for &UIFieldValue<V>
impl<V> TryInto<String> for &UIFieldValue<V>
sourceimpl<V> TryInto<bool> for UIFieldValue<V>
impl<V> TryInto<bool> for UIFieldValue<V>
To conversions
sourceimpl<V> TryInto<bool> for &UIFieldValue<V>
impl<V> TryInto<bool> for &UIFieldValue<V>
sourceimpl<V> TryInto<f32> for UIFieldValue<V>
impl<V> TryInto<f32> for UIFieldValue<V>
sourceimpl<V> TryInto<f32> for &UIFieldValue<V>
impl<V> TryInto<f32> for &UIFieldValue<V>
sourceimpl<V> TryInto<i32> for UIFieldValue<V>
impl<V> TryInto<i32> for UIFieldValue<V>
sourceimpl<V> TryInto<i32> for &UIFieldValue<V>
impl<V> TryInto<i32> for &UIFieldValue<V>
sourceimpl<V> TryInto<u32> for UIFieldValue<V>
impl<V> TryInto<u32> for UIFieldValue<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for UIFieldValue<V> where
V: RefUnwindSafe,
impl<V> Send for UIFieldValue<V> where
V: Send,
impl<V> Sync for UIFieldValue<V> where
V: Sync,
impl<V> Unpin for UIFieldValue<V> where
V: Unpin,
impl<V> UnwindSafe for UIFieldValue<V> where
V: UnwindSafe,
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcefn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified method Read more
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default Read more
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ConvUtil for T
impl<T> ConvUtil for T
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
sourceimpl<T, U> IntoColor<U> for T where
U: FromColor<T>,
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
sourcefn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
sourceimpl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
sourcefn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
sourcefn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.