pub struct StyleParamSpec {
pub key: &'static str,
pub min: f64,
pub max: f64,
pub default: f64,
pub integer: bool,
}Expand description
UI-facing metadata for one stylized-mode parameter.
Fields§
§key: &'static strJSON field name inside the draw_style object.
min: f64§max: f64§default: f64§integer: boolInteger-valued (e.g. seed) — hosts render a stepper, not a slider.
Trait Implementations§
Source§impl Clone for StyleParamSpec
impl Clone for StyleParamSpec
impl Copy for StyleParamSpec
Source§impl Debug for StyleParamSpec
impl Debug for StyleParamSpec
Source§impl PartialEq for StyleParamSpec
impl PartialEq for StyleParamSpec
Source§impl Serialize for StyleParamSpec
impl Serialize for StyleParamSpec
impl StructuralPartialEq for StyleParamSpec
Auto Trait Implementations§
impl Freeze for StyleParamSpec
impl RefUnwindSafe for StyleParamSpec
impl Send for StyleParamSpec
impl Sync for StyleParamSpec
impl Unpin for StyleParamSpec
impl UnsafeUnpin for StyleParamSpec
impl UnwindSafe for StyleParamSpec
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