pub struct Branch {
pub name: String,
pub parent: Option<String>,
pub head_op: Option<OpId>,
pub predicate: Option<Value>,
pub merges: Vec<MergeRecord>,
pub created_at: u64,
}Fields§
§name: String§parent: Option<String>§head_op: Option<OpId>Op DAG head. None means the branch has never had an op
applied (empty branch) or it’s a predicate-defined branch
where the head is computed lazily from predicate.
predicate: Option<Value>Predicate over the op log (#133). When Some, the branch is
a saved query rather than a snapshot — head_op is the
optional materialization cache. The predicate’s JSON shape
matches lex_vcs::Predicate::to_value().
merges: Vec<MergeRecord>Append-only journal of merges committed into this branch.
created_at: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Branch
impl<'de> Deserialize<'de> for Branch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Branch
Auto Trait Implementations§
impl Freeze for Branch
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnsafeUnpin for Branch
impl UnwindSafe for Branch
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