pub struct VcsState {
pub namespace: String,
pub current_branch: Option<String>,
pub last_committed_id: Option<SnapshotId>,
pub dirty: bool,
}Expand description
Per-namespace VCS state stored in kg_vcs_state.
Fields§
§namespace: String§current_branch: Option<String>Name of the currently active branch. None in detached HEAD state.
last_committed_id: Option<SnapshotId>Last committed snapshot ID. None if no commit has been made.
dirty: boolWhether uncommitted changes exist since the last commit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VcsState
impl<'de> Deserialize<'de> for VcsState
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
Auto Trait Implementations§
impl Freeze for VcsState
impl RefUnwindSafe for VcsState
impl Send for VcsState
impl Sync for VcsState
impl Unpin for VcsState
impl UnsafeUnpin for VcsState
impl UnwindSafe for VcsState
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