pub enum MountSpace {
Thoughts,
Context(String),
Reference {
org: String,
repo: String,
},
}
Expand description
Represents the different types of mount spaces in thoughts_tool.
The three-space architecture consists of:
Thoughts
: Single workspace for active development thoughtsContext
: Multiple mounts for team-shared documentationReference
: Read-only external repository references organized by org/repo
Variants§
Thoughts
The primary thoughts workspace mount
Context(String)
A context mount with its mount path
Reference
A reference mount organized by organization and repository
Implementations§
Source§impl MountSpace
impl MountSpace
Sourcepub fn relative_path(&self, mount_dirs: &MountDirsV2) -> String
pub fn relative_path(&self, mount_dirs: &MountDirsV2) -> String
Get the relative path under .thoughts-data for this mount
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Check if this mount space should be read-only
Trait Implementations§
Source§impl Clone for MountSpace
impl Clone for MountSpace
Source§fn clone(&self) -> MountSpace
fn clone(&self) -> MountSpace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MountSpace
impl Debug for MountSpace
Source§impl Display for MountSpace
impl Display for MountSpace
Source§impl Hash for MountSpace
impl Hash for MountSpace
Source§impl PartialEq for MountSpace
impl PartialEq for MountSpace
impl Eq for MountSpace
impl StructuralPartialEq for MountSpace
Auto Trait Implementations§
impl Freeze for MountSpace
impl RefUnwindSafe for MountSpace
impl Send for MountSpace
impl Sync for MountSpace
impl Unpin for MountSpace
impl UnwindSafe for MountSpace
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