pub struct Branch {Show 14 fields
pub id: Uuid,
pub name: String,
pub slug: String,
pub parent_id: Option<Uuid>,
pub status: BranchStatus,
pub db_path: PathBuf,
pub snapshot_path: PathBuf,
pub workspace_id: Uuid,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub forked_from_cursor: Option<String>,
pub description: Option<String>,
pub metadata: Value,
pub metrics: BranchMetrics,
}Expand description
Represents a branch in the ClawDB branching graph.
Fields§
§id: UuidThe unique branch identifier.
name: StringThe human-readable branch name.
slug: StringThe URL-safe branch slug.
parent_id: Option<Uuid>The parent branch identifier when this branch is forked.
status: BranchStatusThe current branch lifecycle status.
db_path: PathBufThe isolated SQLite database path for this branch.
snapshot_path: PathBufThe snapshot path backing this branch.
workspace_id: UuidThe workspace identifier that owns the branch.
created_at: DateTime<Utc>The timestamp at which the branch was created.
updated_at: DateTime<Utc>The timestamp at which the branch was last updated.
forked_from_cursor: Option<String>The source cursor or data version captured when the branch was forked.
description: Option<String>An optional branch description.
metadata: ValueArbitrary structured metadata associated with the branch.
metrics: BranchMetricsAggregated operational metrics for the branch.
Trait 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more