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.
output_directory: PathBufDirectory that contains the JSONL output file.
mode: AtofExporterModeAppend or overwrite behavior used when opening the file.
filename: StringOutput filename.
endpoints: Vec<AtofEndpointConfig>Optional streaming endpoints that receive every raw ATOF event.
impl AtofExporterConfigimpl AtofExporterConfig
newpub fn new() -> Self
Create a config with defaults.
with_output_directorypub fn with_output_directory(self, output_directory: impl Into<PathBuf>) -> Self
Override the output directory.
with_modepub fn with_mode(self, mode: AtofExporterMode) -> Self
Override the output mode.
with_filenamepub fn with_filename(self, filename: impl Into<String>) -> Self
Override the output filename.
with_endpointspub fn with_endpoints(self, endpoints: Vec<AtofEndpointConfig>) -> Self
Override streaming endpoints.
with_endpointpub fn with_endpoint(self, endpoint: AtofEndpointConfig) -> Self
Add one streaming endpoint.
pathpub fn path(&self) -> PathBuf
Return the full output path for this config.
impl Clone for AtofExporterConfigimpl Clone for AtofExporterConfig
clonefn clone(&self) -> AtofExporterConfig
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for AtofExporterConfigimpl Debug for AtofExporterConfig
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for AtofExporterConfigimpl Default for AtofExporterConfig
defaultfn default() -> Self
impl<'de> Deserialize<'de> for AtofExporterConfigimpl<'de> Deserialize<'de> for AtofExporterConfig
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for AtofExporterConfigimpl PartialEq for AtofExporterConfig
eqfn eq(&self, other: &AtofExporterConfig) -> bool
nefn ne(&self, other: &Rhs) -> bool
impl Serialize for AtofExporterConfigimpl Serialize for AtofExporterConfig
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl Eq for AtofExporterConfigimpl Eq for AtofExporterConfig
impl StructuralPartialEq for AtofExporterConfigimpl StructuralPartialEq for AtofExporterConfig