digitalocean_api/
method.rs1use std::fmt::Debug;
4
5pub type Limit = usize;
6
7pub trait Method: Default + Debug + Clone + Copy {}
10
11#[derive(Debug, Clone, Copy, Default)]
15pub struct List(pub Option<Limit>);
16impl Method for List {}
17
18#[derive(Debug, Clone, Copy, Default)]
20pub struct Get;
21impl Method for Get {}
22
23#[derive(Debug, Clone, Copy, Default)]
25pub struct Create;
26impl Method for Create {}
27
28#[derive(Debug, Clone, Copy, Default)]
30pub struct Update;
31impl Method for Update {}
32
33#[derive(Debug, Clone, Copy, Default)]
35pub struct Delete;
36impl Method for Delete {}