clerk_rs/models/
proxy_check.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct ProxyCheck {
13 #[serde(rename = "object")]
14 pub object: Object,
15 #[serde(rename = "id")]
16 pub id: String,
17 #[serde(rename = "domain_id")]
18 pub domain_id: String,
19 #[serde(rename = "last_run_at")]
20 pub last_run_at: i64,
21 #[serde(rename = "proxy_url")]
22 pub proxy_url: String,
23 #[serde(rename = "successful")]
24 pub successful: bool,
25 #[serde(rename = "created_at")]
26 pub created_at: i64,
27 #[serde(rename = "updated_at")]
28 pub updated_at: i64,
29}
30
31impl ProxyCheck {
32 pub fn new(
33 object: Object,
34 id: String,
35 domain_id: String,
36 last_run_at: i64,
37 proxy_url: String,
38 successful: bool,
39 created_at: i64,
40 updated_at: i64,
41 ) -> ProxyCheck {
42 ProxyCheck {
43 object,
44 id,
45 domain_id,
46 last_run_at,
47 proxy_url,
48 successful,
49 created_at,
50 updated_at,
51 }
52 }
53}
54
55#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
57pub enum Object {
58 #[serde(rename = "proxy_check")]
59 ProxyCheck,
60}
61
62impl Default for Object {
63 fn default() -> Object {
64 Self::ProxyCheck
65 }
66}