diff --git a/src/params.rs b/src/params.rs index 2b5a8d8..060c14a 100644 --- a/src/params.rs +++ b/src/params.rs @@ -23,6 +23,14 @@ use std::{ pub struct Params<'a>(HashMap, Cow<'a, str>>); impl<'a> Params<'a> { + #[inline] + pub fn custom>, S: Into>>( + mut self, key: K, value: S, + ) -> Self { + self.insert(key.into(), value.into()); + self + } + #[inline] pub fn gateway_interface>>(mut self, gateway_interface: S) -> Self { self.insert("GATEWAY_INTERFACE".into(), gateway_interface.into());