pub struct Slot {
pub name: String,
pub type_ref: Option<String>,
pub meta: HashMap<String, Kind>,
pub default: Option<Kind>,
pub is_marker: bool,
pub is_query: bool,
pub children: Vec<Slot>,
}Expand description
A resolved slot within a Spec.
Fields§
§name: StringSlot name.
type_ref: Option<String>Type reference (e.g. "Str", "Number").
meta: HashMap<String, Kind>Metadata tags.
default: Option<Kind>Default value.
is_marker: boolWhether this slot is a marker (no type/value).
is_query: boolWhether this slot is a query.
children: Vec<Slot>Nested child slots.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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