pub struct SheafCondition {
pub name: String,
pub predicate_name: String,
pub required: bool,
}Expand description
A sheaf condition — a Pure predicate checked at commit (T48).
The sheaf condition verifies that staged deltas are consistent before they are committed. If the condition fails, the result is a diagnostic (not an exception unwind). The host decides whether to retry, quarantine, or reject.
Fields§
§name: StringHuman-readable name of the condition.
predicate_name: StringThe predicate expression (as VibeScript source or a host-side callback). In v0, this is a name the host resolves; VibeScript doesn’t evaluate the predicate itself — the host does.
required: boolWhether this condition is required (true) or advisory (false).
Implementations§
Trait Implementations§
Source§impl Clone for SheafCondition
impl Clone for SheafCondition
Auto Trait Implementations§
impl Freeze for SheafCondition
impl RefUnwindSafe for SheafCondition
impl Send for SheafCondition
impl Sync for SheafCondition
impl Unpin for SheafCondition
impl UnsafeUnpin for SheafCondition
impl UnwindSafe for SheafCondition
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