///
/// See: [List
/// OnCalls](https://developer.pagerduty.com/api-reference/b3A6Mjc0ODE2Mw-list-all-of-the-on-calls)
pub fn all<Q>(client: &Client, page_size: usize, params: &'static Q) -> Stream<OnCall>
where
    Q: Serialize + ?Sized + std::marker::Sync,
{
    client.get_stream("oncalls", "/oncalls", page_size, params)
}

#[cfg(test)]
mod test {
    use crate::{models, oncalls, Client, StreamExt, NO_QUERY};
    use futures::TryStreamExt;
    use tokio::test;