pub struct Sources<'a> {
pub config_dir: Option<&'a Path>,
pub profile_dir: Option<&'a Path>,
pub workspace: &'a Path,
pub home: Option<&'a Path>,
pub user_file: &'a str,
pub memory_file: &'a str,
}Expand description
Where the files may be found. Separate from Config so the
discovery rules can be tested without a config file on disk.
Fields§
§config_dir: Option<&'a Path>The config directory: holds the global AGENT.md.
profile_dir: Option<&'a Path>Where USER.md / MEMORY.md live (the profile’s directory).
workspace: &'a PathWhere the agent was started: the project walk begins here.
home: Option<&'a Path>Never walk above this directory.
user_file: &'a strFile names, so a profile can point at different ones.
memory_file: &'a strAuto Trait Implementations§
impl<'a> Forget for Sources<'a>
impl<'a> Freeze for Sources<'a>
impl<'a> Move for Sources<'a>
impl<'a> RefUnwindSafe for Sources<'a>
impl<'a> Send for Sources<'a>
impl<'a> Sync for Sources<'a>
impl<'a> Unpin for Sources<'a>
impl<'a> UnsafeUnpin for Sources<'a>
impl<'a> UnwindSafe for Sources<'a>
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