pub struct FieldRule<C> {
pub at: PathPat,
pub ty: Option<FieldType>,
pub constraint: Option<C>,
pub present: Presentation,
}Expand description
One field rule: which node(s) it governs, the type it expects, an optional
constraint of the embedder’s own type C, and how to present it.
Fields§
§at: PathPatWhich node(s) this governs (reaches list elements, not only scalars).
ty: Option<FieldType>The expected type — drives type-directed parsing and widget choice.
constraint: Option<C>A value constraint, in whatever shape the embedder defines.
present: PresentationRenderer-neutral presentation hints.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for FieldRule<C>where
C: Freeze,
impl<C> RefUnwindSafe for FieldRule<C>where
C: RefUnwindSafe,
impl<C> Send for FieldRule<C>where
C: Send,
impl<C> Sync for FieldRule<C>where
C: Sync,
impl<C> Unpin for FieldRule<C>where
C: Unpin,
impl<C> UnsafeUnpin for FieldRule<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for FieldRule<C>where
C: 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