Commit 8398073c authored by Nicholas Omer Chiasson's avatar Nicholas Omer Chiasson Committed by Ben Boeckel
Browse files

gitlab: take query parameters on all APIs

parent 9dd64181
This diff is collapsed.
......@@ -87,3 +87,15 @@ macro_rules! get_event {
}
};
}
macro_rules! query_param_slice {
( $( $x:expr ),* ) => (
&[$($x),*] as QueryParamSlice
)
}
macro_rules! query_param_vec {
( $( $x:expr ),* ) => (
vec![$($x),*] as QueryParamVec
)
}
......@@ -27,6 +27,12 @@ use std::fmt::{self, Display, Formatter};
// pub name: String,
//}
/// Type alias for slice of string two-tuples
pub type QueryParamSlice<'a> = &'a [(&'a str, &'a str)];
/// Type alias for Vec of string two-tuples
pub type QueryParamVec<'a> = Vec<(&'a str, &'a str)>;
#[cfg_attr(feature = "strict", serde(deny_unknown_fields))]
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq)]
/// Type-safe user ID.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment