Struct Atof Exporter Config

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct AtofExporterConfig {
    pub output_directory: PathBuf,
    pub mode: AtofExporterMode,
    pub filename: String,
}

Configuration for AtofExporter.

Fields

output_directory: PathBuf

Directory that contains the JSONL output file.

mode: AtofExporterMode

Append or overwrite behavior used when opening the file.

filename: String

Output filename.

Implementations

impl AtofExporterConfig

impl AtofExporterConfig

new

pub fn new() -> Self

Create a config with defaults.

with_output_directory

pub fn with_output_directory(self, output_directory: impl Into<PathBuf>) -> Self

Override the output directory.

with_mode

pub fn with_mode(self, mode: AtofExporterMode) -> Self

Override the output mode.

with_filename

pub fn with_filename(self, filename: impl Into<String>) -> Self

Override the output filename.

path

pub fn path(&self) -> PathBuf

Return the full output path for this config.

Trait Implementations

impl Clone for AtofExporterConfig

impl Clone for AtofExporterConfig

clone

fn clone(&self) -> AtofExporterConfig

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for AtofExporterConfig

impl Debug for AtofExporterConfig

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for AtofExporterConfig

impl Default for AtofExporterConfig

default

fn default() -> Self

impl PartialEq for AtofExporterConfig

impl PartialEq for AtofExporterConfig

eq

fn eq(&self, other: &AtofExporterConfig) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Eq for AtofExporterConfig

impl Eq for AtofExporterConfig

impl StructuralPartialEq for AtofExporterConfig

impl StructuralPartialEq for AtofExporterConfig