diff --git a/src/network/utils.rs b/src/network/utils.rs index 12aab2f..2b7ddaa 100644 --- a/src/network/utils.rs +++ b/src/network/utils.rs @@ -41,15 +41,18 @@ pub enum DataType { } /// where to insert parameters -#[derive(Debug, Clone, PartialEq, Serialize, Copy, Default)] +#[derive(Debug, Clone, PartialEq, Serialize, Copy)] pub enum InjectionPlace { - #[default] Path, Body, Headers, HeaderValue, } +impl Default for InjectionPlace { + fn default() -> Self { InjectionPlace::Path } +} + pub trait Headers { fn contains_key(&self, key: &str) -> bool; fn get_value(&self, key: &str) -> Option;