fn query_params()

in client/src/client/get_cursor.rs [67:82]


    fn query_params(&self) -> Option<Vec<(String, String)>> {
        let mut params = Vec::new();
        params.push(("type".to_string(), "cursor".to_string()));
        match &self.cursor_pos {
            get_cursor_models::CursorPos::Begin => {
                params.push(("from".to_string(), "begin".to_string()))
            }
            get_cursor_models::CursorPos::End => {
                params.push(("from".to_string(), "end".to_string()))
            }
            get_cursor_models::CursorPos::UnixTimeStamp(t) => {
                params.push(("from".to_string(), t.to_string()))
            }
        }
        Some(params)
    }