#[non_exhaustive]pub enum ChildRef {
Single,
List,
Items(String),
}Expand description
How a component property refers to other components, read from its schema’s
$ref, which is how the specification says validators find structural links
(“Validator compliance when defining catalogs”).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Single
One component id (ComponentId or Child).
List
A ChildList: an array of ids, or a template (componentId and path).
Items(String)
An array of objects each holding one component id in this field (the
basic catalog’s Tabs.tabs[].child).
Trait Implementations§
impl Eq for ChildRef
impl StructuralPartialEq for ChildRef
Auto Trait Implementations§
impl Forget for ChildRef
impl Freeze for ChildRef
impl Move for ChildRef
impl RefUnwindSafe for ChildRef
impl Send for ChildRefwhere
RawVecInner: Send,
impl Sync for ChildRefwhere
RawVecInner: Sync,
impl Unpin for ChildRef
impl UnsafeUnpin for ChildRef
impl UnwindSafe for ChildRefwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.