Struct Atof Exporter Config

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct AtofExporterConfig {
    pub sink: AtofSinkConfig,
}

Configuration for AtofExporter.

Fields

sink: AtofSinkConfig

The one output sink owned by this exporter.

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 file sink output directory.

This has no effect after selecting a stream sink with Self::with_stream_sink or Self::with_endpoint.

with_mode

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

Override the file sink output mode.

This has no effect after selecting a stream sink with Self::with_stream_sink or Self::with_endpoint.

with_filename

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

Override the file sink output filename.

This has no effect after selecting a stream sink with Self::with_stream_sink or Self::with_endpoint.

with_stream_sink

pub fn with_stream_sink(self, sink: AtofStreamSinkConfig) -> Self

Select one stream sink.

with_endpoint

pub fn with_endpoint(self, endpoint: AtofEndpointConfig) -> Self

Select one stream sink.

This compatibility spelling replaces the configured file sink; use the observability plugin’s sinks array for file-and-stream fan-out.

path

pub fn path(&self) -> Option<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<'de> Deserialize<'de> for AtofExporterConfig

impl<'de> Deserialize<'de> for AtofExporterConfig

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl PartialEq for AtofExporterConfig

impl PartialEq for AtofExporterConfig

eq

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

ne

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

impl Serialize for AtofExporterConfig

impl Serialize for AtofExporterConfig

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Eq for AtofExporterConfig

impl Eq for AtofExporterConfig

impl StructuralPartialEq for AtofExporterConfig

impl StructuralPartialEq for AtofExporterConfig