#[derive(Clone, Debug, Default)]
pub struct ListCollectionsRequest {
pub since: Option<u64>,
pub limit: Option<u32>,
pub start: Option<u32>,
}
impl ListCollectionsRequest {
pub fn to_query_pairs(&self) -> Vec<(String, String)> {
let mut pairs = Vec::new();
if let Some(value) = self.since {
pairs.push(("since".to_owned(), value.to_string()));
}
if let Some(value) = self.limit {
pairs.push(("limit".to_owned(), value.to_string()));
}
if let Some(value) = self.start {
pairs.push(("start".to_owned(), value.to_string()));
}
pairs
}
}