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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more