pub struct VcsConfig {
pub gitdir: String,
pub worktree: String,
}Expand description
VCS layout for a writable mem — optional { gitdir, worktree } pair
in .memstead/config.json. When absent, the engine resolves the default:
.git/ at mem root with . as worktree.
Paths are relative to mem root and interpreted by memstead-git-branch —
this crate just carries them through serde. Masterplan §3.4 is
explicit that the primitive is a pair of paths; the two canonical
idioms (isolated { ".git", "." } and shared { "../.git", ".." })
are idioms, not enum variants.
Fields§
§gitdir: StringPath to the gitdir relative to mem root. Required when the
vcs block is present.
worktree: StringPath to the worktree relative to mem root. Optional within the
vcs block — defaults to "." (mem root) when omitted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VcsConfig
impl<'de> Deserialize<'de> for VcsConfig
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 Eq for VcsConfig
impl StructuralPartialEq for VcsConfig
Auto Trait Implementations§
impl Freeze for VcsConfig
impl RefUnwindSafe for VcsConfig
impl Send for VcsConfig
impl Sync for VcsConfig
impl Unpin for VcsConfig
impl UnsafeUnpin for VcsConfig
impl UnwindSafe for VcsConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.