2024-10-19 18:02:04 +02:00
|
|
|
|
|
|
|
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
|
|
|
|
#[serde(tag = "type", rename_all = "lowercase")]
|
2024-10-20 01:32:05 +02:00
|
|
|
pub enum ExtractorConfig {
|
2024-10-19 18:02:04 +02:00
|
|
|
#[default]
|
|
|
|
Body,
|
2024-10-19 22:27:36 +02:00
|
|
|
Debug,
|
2024-10-19 18:02:04 +02:00
|
|
|
Discard,
|
2024-10-19 22:22:12 +02:00
|
|
|
JQ { query: String },
|
2024-10-19 20:18:34 +02:00
|
|
|
Regex { pattern: String },
|
2024-10-19 18:02:04 +02:00
|
|
|
Header { key: String },
|
|
|
|
}
|