pub struct RepoContext {
pub name: String,
pub path: PathBuf,
pub branch: Option<String>,
pub agent_docs: Vec<AgentDoc>,
pub warnings: Vec<String>,
}Expand description
Per-repo block of the Context envelope.
Fields§
§name: String§path: PathBuf§branch: Option<String>§agent_docs: Vec<AgentDoc>§warnings: Vec<String>Implementations§
Source§impl RepoContext
impl RepoContext
Sourcepub fn build_one(name: &str, repo_path: &Path, agents: &[AgentId]) -> Self
pub fn build_one(name: &str, repo_path: &Path, agents: &[AgentId]) -> Self
Build a RepoContext for a single repository. Failures are inline:
missing paths, unreadable directories, and per-file read failures
surface as warning strings rather than aborting the batch.
branch is None for missing / unborn / detached / bare repos. The
missing case also writes a top-level warning so callers don’t have to
re-derive the missing state from branch.is_none().
Trait Implementations§
Source§impl Clone for RepoContext
impl Clone for RepoContext
Source§fn clone(&self) -> RepoContext
fn clone(&self) -> RepoContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepoContext
impl Debug for RepoContext
Auto Trait Implementations§
impl Freeze for RepoContext
impl RefUnwindSafe for RepoContext
impl Send for RepoContext
impl Sync for RepoContext
impl Unpin for RepoContext
impl UnsafeUnpin for RepoContext
impl UnwindSafe for RepoContext
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