pub enum ControlSpec {
Show 13 variants
Enum {
key: String,
variants: Vec<EnumVariant>,
default: String,
},
Bool {
key: String,
default: bool,
},
Number {
key: String,
default: f64,
include: Option<bool>,
min: Option<f64>,
max: Option<f64>,
step: Option<f64>,
},
String {
key: String,
default: String,
placeholder: Option<String>,
},
Color {
key: String,
default: String,
},
Palette {
key: String,
default: String,
max: Option<usize>,
},
GradientStops {
key: String,
default: String,
discrete: bool,
},
DatetimeFormat,
StringFormat,
NumberSeriesStyle {
default: NumberSeriesStyleDefaultConfig,
},
Symbols {
default: KeyValueOpts,
},
NumberFormat,
AggregateDepth,
}Expand description
Discriminated union of widget kinds the viewer can render. Composite
variants wrap an existing rich Yew component and carry only the
component’s *DefaultConfig. Primitive variants render generic scalar
widgets and carry their own key inline; the visible label is
resolved at CSS time via --psp-label--<key>--content.
Variants§
Enum
Bool
Number
Fields
String
Color
Palette
GradientStops
DatetimeFormat
StringFormat
NumberSeriesStyle
Fields
§
default: NumberSeriesStyleDefaultConfigSymbols
Fields
§
default: KeyValueOptsNumberFormat
AggregateDepth
Implementations§
Source§impl ControlSpec
impl ControlSpec
Sourcepub fn serialized_keys(&self) -> Vec<&str>
pub fn serialized_keys(&self) -> Vec<&str>
Top-level JSON keys this control owns when its value is serialized
into a column’s config map. For primitives this is just [key];
for composites it’s the set of fields the wrapped sub-struct
flattens. Used by ColumnConfigSchema::active_keys to filter the
columns_config blob passed to plugin.restore().
Trait Implementations§
Source§impl Clone for ControlSpec
impl Clone for ControlSpec
Source§fn clone(&self) -> ControlSpec
fn clone(&self) -> ControlSpec
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 ControlSpec
impl Debug for ControlSpec
Source§impl<'de> Deserialize<'de> for ControlSpec
impl<'de> Deserialize<'de> for ControlSpec
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
Auto Trait Implementations§
impl Freeze for ControlSpec
impl RefUnwindSafe for ControlSpec
impl Send for ControlSpec
impl Sync for ControlSpec
impl Unpin for ControlSpec
impl UnsafeUnpin for ControlSpec
impl UnwindSafe for ControlSpec
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> HasAllProps<(), T> for T
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<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.