Struct Atof Exporter Config
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,
pub endpoints: Vec<AtofEndpointConfig>,
}
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.
endpoints: Vec<AtofEndpointConfig>
Optional streaming endpoints that receive every raw ATOF event.
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.
with_endpoints
pub fn with_endpoints(self, endpoints: Vec<AtofEndpointConfig>) -> Self
Override streaming endpoints.
with_endpoint
pub fn with_endpoint(self, endpoint: AtofEndpointConfig) -> Self
Add one streaming endpoint.
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<'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