pub struct OutputRootConfig {
pub root_dir: PathBuf,
pub per_entity_subtree: bool,
pub entity_code: Option<String>,
}Expand description
Output routing config for the enhanced orchestrator’s file-writer.
In single-entity mode (default) OutputRootConfig::flat preserves the
pre-v5.0 layout: all generated files land directly under root_dir.
In group-audit shard mode, the runner sets per_entity_subtree: true
and entity_code: Some(code) so each entity’s archive is written under
{root_dir}/entities/{code}/, leaving {root_dir}/ itself available
for group-wide artifacts (consolidated FS, aggregate summary, etc).
Fields§
§root_dir: PathBufRoot output directory as configured by the caller.
per_entity_subtree: boolWhen true, output is routed under {root_dir}/entities/{entity_code}/
so group-wide artifacts (consolidated FS, summary) can live alongside
per-entity shard archives at {root_dir}/.
entity_code: Option<String>Entity code identifying the shard. Ignored when per_entity_subtree
is false. When per_entity_subtree is true but this is None,
OutputRootConfig::effective_dir safely falls back to root_dir.
Implementations§
Source§impl OutputRootConfig
impl OutputRootConfig
Sourcepub fn flat(root_dir: impl Into<PathBuf>) -> Self
pub fn flat(root_dir: impl Into<PathBuf>) -> Self
Flat single-entity layout: files written directly under root_dir.
Sourcepub fn per_entity(
root_dir: impl Into<PathBuf>,
entity_code: impl Into<String>,
) -> Self
pub fn per_entity( root_dir: impl Into<PathBuf>, entity_code: impl Into<String>, ) -> Self
Per-entity subtree layout: files written under
{root_dir}/entities/{entity_code}/.
Sourcepub fn effective_dir(&self) -> PathBuf
pub fn effective_dir(&self) -> PathBuf
Resolve the effective output_dir path for the file-writer. This
is the directory into which all the existing write_* helpers
compose their .join("subdir") paths.
Defensive fallback: if per_entity_subtree is true but
entity_code is None, we revert to root_dir rather than write
into a nameless {root_dir}/entities/ directory.
Trait Implementations§
Source§impl Clone for OutputRootConfig
impl Clone for OutputRootConfig
Source§fn clone(&self) -> OutputRootConfig
fn clone(&self) -> OutputRootConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OutputRootConfig
impl Debug for OutputRootConfig
Source§impl Default for OutputRootConfig
impl Default for OutputRootConfig
Source§impl PartialEq for OutputRootConfig
impl PartialEq for OutputRootConfig
Source§fn eq(&self, other: &OutputRootConfig) -> bool
fn eq(&self, other: &OutputRootConfig) -> bool
self and other values to be equal, and is used by ==.impl Eq for OutputRootConfig
impl StructuralPartialEq for OutputRootConfig
Auto Trait Implementations§
impl Freeze for OutputRootConfig
impl RefUnwindSafe for OutputRootConfig
impl Send for OutputRootConfig
impl Sync for OutputRootConfig
impl Unpin for OutputRootConfig
impl UnsafeUnpin for OutputRootConfig
impl UnwindSafe for OutputRootConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.