Commit a98fdad5 authored by Brad King's avatar Brad King
Browse files

Merge branch 'groups-api-and-attributes' into release-11.9

91cb2098 gitlab: add API endpoint for groups
8398073c

 gitlab: take query parameters on all APIs
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !137
parents 406f05f0 91cb2098
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