pub struct ColumnConfigSchema {
pub fields: Vec<ControlSpec>,
}Expand description
The full schema for one column at one point in time. Plugins may return different schemas for the same column based on the column’s current stored value (e.g. to hide dependent fields), so this is re-queried on every field update.
Each entry is a ControlSpec. Primitive variants carry their own
key (JSON storage key) inline; the sidebar UI label is supplied by
CSS via --psp-label--<key>--content. Composite variants render a
self-contained Yew component that supplies its own labels and owns a
fixed key namespace via ControlSpec::serialized_keys.
Fields§
§fields: Vec<ControlSpec>Implementations§
Source§impl ColumnConfigSchema
impl ColumnConfigSchema
Sourcepub fn active_keys(&self) -> HashSet<String>
pub fn active_keys(&self) -> HashSet<String>
Union of every JSON key any control in this schema knows how to
read or write. Used to build the schema-filtered view of
columns_config passed to plugin.restore() — keys not in this
set are “ghost” state from a different plugin and stay invisible
to the active one.
Trait Implementations§
Source§impl Clone for ColumnConfigSchema
impl Clone for ColumnConfigSchema
Source§fn clone(&self) -> ColumnConfigSchema
fn clone(&self) -> ColumnConfigSchema
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ColumnConfigSchema
impl Debug for ColumnConfigSchema
Source§impl Default for ColumnConfigSchema
impl Default for ColumnConfigSchema
Source§fn default() -> ColumnConfigSchema
fn default() -> ColumnConfigSchema
Source§impl<'de> Deserialize<'de> for ColumnConfigSchema
impl<'de> Deserialize<'de> for ColumnConfigSchema
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>,
Auto Trait Implementations§
impl Freeze for ColumnConfigSchema
impl RefUnwindSafe for ColumnConfigSchema
impl Send for ColumnConfigSchema
impl Sync for ColumnConfigSchema
impl Unpin for ColumnConfigSchema
impl UnsafeUnpin for ColumnConfigSchema
impl UnwindSafe for ColumnConfigSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
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>
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>
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>
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
self to a value of a Properties struct.