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.
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.
Source§impl ColumnConfigSchema
impl ColumnConfigSchema
Sourcepub fn canonicalize_defaults(self) -> Self
pub fn canonicalize_defaults(self) -> Self
Canonicalize every CSS-valued default at schema ingest, dropping (and logging) fields whose default fails its kind’s reader.
Sourcepub fn css_kind_of(&self, key: &str) -> Option<CssKind>
pub fn css_kind_of(&self, key: &str) -> Option<CssKind>
The CSS kind of the control owning key, if it is CSS-valued.
Trait Implementations§
Source§impl Clone for ColumnConfigSchema
impl Clone for ColumnConfigSchema
Source§fn clone(&self) -> ColumnConfigSchema
fn clone(&self) -> ColumnConfigSchema
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 ColumnConfigSchema
impl Debug for ColumnConfigSchema
Source§impl Default for ColumnConfigSchema
impl Default for ColumnConfigSchema
Source§fn default() -> ColumnConfigSchema
fn default() -> ColumnConfigSchema
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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§
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.