1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use vector_lib::configurable::configurable_component;

/// Content encoding.
#[configurable_component]
#[derive(Clone, Copy, Debug, Derivative, Eq, PartialEq)]
#[serde(rename_all = "snake_case")]
#[derivative(Default)]
pub enum Encoding {
    /// Plaintext.
    #[derivative(Default)]
    Text,

    /// Newline-delimited JSON.
    Ndjson,

    /// JSON.
    Json,

    /// Binary.
    Binary,
}