Skip to main content

args_api/endpoint/task/
poll_task.rs

1use crate::{endpoint::Endpoint, resource::PollTaskResource};
2
3pub struct PollTask;
4
5impl Endpoint for PollTask {
6    const PATH: &'static str = "/ci/task/poll";
7    const METHOD: http::Method = http::Method::GET;
8
9    type Request = PollTaskRequest;
10    type Response = PollTaskResponse;
11}
12
13pub type PollTaskRequest = ();
14
15pub type PollTaskResponse = Option<PollTaskResource>;