pub struct LoadedConfig {
pub allowlist: Allowlist,
pub sources: Vec<PathBuf>,
pub defaults_included: bool,
pub root: PathBuf,
pub cwd: PathBuf,
}Expand description
The result of resolving config for a particular working directory.
Fields§
§allowlist: AllowlistMerged allowlist (defaults + every loaded TOML, in merge order).
sources: Vec<PathBuf>TOML files that were loaded, in the order they were merged
(outermost first, innermost last). The global ~/.shell-mcp.toml
appears first if present.
defaults_included: boolTrue if any loaded config explicitly disabled platform defaults.
root: PathBufThe launch root used for this resolution.
cwd: PathBufThe working directory the resolution was performed against.
Trait Implementations§
Source§impl Clone for LoadedConfig
impl Clone for LoadedConfig
Source§fn clone(&self) -> LoadedConfig
fn clone(&self) -> LoadedConfig
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 moreAuto Trait Implementations§
impl Freeze for LoadedConfig
impl RefUnwindSafe for LoadedConfig
impl Send for LoadedConfig
impl Sync for LoadedConfig
impl Unpin for LoadedConfig
impl UnsafeUnpin for LoadedConfig
impl UnwindSafe for LoadedConfig
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