pub struct ProjectDef {
pub name: String,
pub slug: String,
pub repo: Option<String>,
pub default_agent: Option<String>,
pub agents: Vec<String>,
pub description: Option<String>,
pub memory: Option<MemoryConfig>,
}Expand description
Per-project definition (projects/
Fields§
§name: String§slug: String§repo: Option<String>Local repo or workspace path.
default_agent: Option<String>§agents: Vec<String>§description: Option<String>§memory: Option<MemoryConfig>Project-level config overrides.
Implementations§
Source§impl ProjectDef
impl ProjectDef
Sourcepub fn project_dir(home: &Path, slug: &str) -> PathBuf
pub fn project_dir(home: &Path, slug: &str) -> PathBuf
Path to this project’s directory under ENACT_HOME.
Sourcepub fn project_yaml_path(home: &Path, slug: &str) -> PathBuf
pub fn project_yaml_path(home: &Path, slug: &str) -> PathBuf
Path to project.yaml.
Sourcepub fn taskboard_path(home: &Path, slug: &str) -> PathBuf
pub fn taskboard_path(home: &Path, slug: &str) -> PathBuf
Path to taskboard.yaml.
Sourcepub fn sessions_dir(home: &Path, slug: &str) -> PathBuf
pub fn sessions_dir(home: &Path, slug: &str) -> PathBuf
Path to this project’s sessions directory.
Sourcepub fn context_dir(home: &Path, slug: &str) -> PathBuf
pub fn context_dir(home: &Path, slug: &str) -> PathBuf
Path to this project’s context directory (agent-writable).
Trait Implementations§
Source§impl Clone for ProjectDef
impl Clone for ProjectDef
Source§fn clone(&self) -> ProjectDef
fn clone(&self) -> ProjectDef
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 ProjectDef
impl Debug for ProjectDef
Source§impl<'de> Deserialize<'de> for ProjectDef
impl<'de> Deserialize<'de> for ProjectDef
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
Source§impl PartialEq for ProjectDef
impl PartialEq for ProjectDef
Source§impl Serialize for ProjectDef
impl Serialize for ProjectDef
impl StructuralPartialEq for ProjectDef
Auto Trait Implementations§
impl Freeze for ProjectDef
impl RefUnwindSafe for ProjectDef
impl Send for ProjectDef
impl Sync for ProjectDef
impl Unpin for ProjectDef
impl UnsafeUnpin for ProjectDef
impl UnwindSafe for ProjectDef
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