pub struct Draft {
pub base: Expr,
pub proposed: Expr,
pub committable: bool,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A pending edit over a value: the base, the proposed value, whether it may be committed, and any field-anchored diagnostics.
Fields§
§base: ExprThe value being edited, before this draft.
proposed: ExprThe proposed value if the draft commits.
committable: boolWhether the draft currently passes validation.
diagnostics: Vec<Diagnostic>Field-anchored diagnostics; non-empty implies not committable.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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