postwoman/src/model/extractor.rs

13 lines
257 B
Rust
Raw Normal View History

2024-10-19 18:02:04 +02:00
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(tag = "type", rename_all = "lowercase")]
pub enum Extractor {
#[default]
Debug,
Body,
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 },
}