pub struct OutputConfig { /* private fields */ }Expand description
Configuration for ceremony output directory structure.
All ceremony outputs (artifacts and transcript) are written to a structured directory layout:
ceremony-name-20251229T143022/
├── transcript.jsonl
└── artifacts/
├── wrapped_key.bin
├── public_key.pem
└── share_1.txtImplementations§
Source§impl OutputConfig
impl OutputConfig
Sourcepub fn new(base_dir: PathBuf) -> Self
pub fn new(base_dir: PathBuf) -> Self
Create a new output configuration with the given base directory.
Sourcepub fn for_ceremony(parent: Option<PathBuf>, ceremony_name: &str) -> Self
pub fn for_ceremony(parent: Option<PathBuf>, ceremony_name: &str) -> Self
Create output configuration for a ceremony run.
Generates a timestamped directory name from the ceremony name:
<parent>/<ceremony-slug>-<YYYYMMDDTHHMMSS>/
§Arguments
parent- Parent directory (defaults to current directory if None)ceremony_name- Human-readable ceremony name to slugify
Sourcepub fn artifacts_dir(&self) -> PathBuf
pub fn artifacts_dir(&self) -> PathBuf
Returns the path to the artifacts subdirectory.
Sourcepub fn transcript_path(&self) -> PathBuf
pub fn transcript_path(&self) -> PathBuf
Returns the path to the transcript file.
Uses JSONL format (transcript.jsonl) for hash-chained event log.
Sourcepub fn evidence_dir(&self) -> PathBuf
pub fn evidence_dir(&self) -> PathBuf
Returns the path to the evidence subdirectory.
Sourcepub fn artifact_path(&self, id: &str, extension: &str) -> PathBuf
pub fn artifact_path(&self, id: &str, extension: &str) -> PathBuf
Returns the path for an artifact with the given ID and extension.
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
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 OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnsafeUnpin for OutputConfig
impl UnwindSafe for OutputConfig
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