pub struct ComponentDef {
pub children: BTreeMap<String, ChildRef>,
pub allowed_parents: Option<Vec<String>>,
pub allowed_children: Option<Vec<String>>,
pub actions: BTreeSet<String>,
}Expand description
What validation needs to know about one component type.
Fields§
§children: BTreeMap<String, ChildRef>The properties that hold child references, by name.
allowed_parents: Option<Vec<String>>The parent types this component may appear under (None: any).
allowed_children: Option<Vec<String>>The child types this component may contain (None: any).
actions: BTreeSet<String>The properties that hold an Action, which a renderer runs on a user
gesture rather than resolving with the other properties.
Trait Implementations§
Source§impl Clone for ComponentDef
impl Clone for ComponentDef
Source§impl Debug for ComponentDef
impl Debug for ComponentDef
Source§impl Default for ComponentDef
impl Default for ComponentDef
impl Eq for ComponentDef
Source§impl PartialEq for ComponentDef
impl PartialEq for ComponentDef
impl StructuralPartialEq for ComponentDef
Auto Trait Implementations§
impl Forget for ComponentDef
impl Freeze for ComponentDef
impl Move for ComponentDef
impl RefUnwindSafe for ComponentDef
impl Send for ComponentDef
impl Sync for ComponentDef
impl Unpin for ComponentDef
impl UnsafeUnpin for ComponentDef
impl UnwindSafe for ComponentDef
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.