Enum LogFormat

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.

1pub enum LogFormat {
2 Human,
3 Jsonl,
4}

Output encoding for an operational log sink.

Variants

Human

Human

Single-line human-readable text.

Jsonl

Jsonl

One JSON object per line.

Implementations

impl LogFormat

impl LogFormat

parse

pub fn parse(raw: &str) -> Result<Self>

Parses a config string into a LogFormat.

Trait Implementations

impl Clone for LogFormat

impl Clone for LogFormat

clone

fn clone(&self) -> LogFormat

clone_from

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

impl Debug for LogFormat

impl Debug for LogFormat

fmt

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

impl PartialEq for LogFormat

impl PartialEq for LogFormat

eq

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

ne

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

impl Copy for LogFormat

impl Copy for LogFormat

impl Eq for LogFormat

impl Eq for LogFormat

impl StructuralPartialEq for LogFormat

impl StructuralPartialEq for LogFormat