#[non_exhaustive]pub enum FieldKind {
Literal(ValueKind),
Expr(ValueKind),
Interpolated,
Output,
Templated,
List(fn() -> Self),
Map(fn() -> Self),
Nested(fn() -> &'static [FieldSpec]),
}Expand description
What a config field is, for tooling.
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.
Literal(ValueKind)
A literal of the given kind, never evaluated.
Expr(ValueKind)
JSONLogic resolving to the given kind.
Interpolated
A document with expression holes.
Output
A write destination.
Templated
A runtime-declared set of fields.
List(fn() -> Self)
An array of the element kind.
Map(fn() -> Self)
An object whose values are of the given kind.
Nested(fn() -> &'static [FieldSpec])
A nested config’s fields.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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