Skip to content

Commit 66daf8c

Browse files
committed
Type enums
1 parent 8ab2d9f commit 66daf8c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

ddtelemetry/src/data/payloads.rs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -111,33 +111,33 @@ pub struct EndpointsPayload {
111111
#[serde(rename_all = "UPPERCASE")]
112112
#[repr(C)]
113113
pub enum Method {
114-
Get,
115-
Post,
116-
Put,
117-
Delete,
118-
Patch,
119-
Head,
120-
Options,
121-
Trace,
122-
Connect,
123-
Other, //This is specified as "*" in the OpenAPI spec
114+
Get = 0,
115+
Post = 1,
116+
Put = 2,
117+
Delete = 3,
118+
Patch = 4,
119+
Head = 5,
120+
Options = 6,
121+
Trace = 7,
122+
Connect = 8,
123+
Other = 9, //This is specified as "*" in the OpenAPI spec
124124
}
125125

126126
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Hash, Clone)]
127127
#[serde(rename_all = "UPPERCASE")]
128128
#[repr(C)]
129129
pub enum Authentication {
130-
Jwt,
131-
Basic,
132-
Oauth,
133-
Oidc,
134-
ApiKey,
135-
Session,
136-
Mtls,
137-
Saml,
138-
Ldap,
139-
Form,
140-
Other,
130+
Jwt = 0,
131+
Basic = 1,
132+
Oauth = 2,
133+
Oidc = 3,
134+
ApiKey = 4,
135+
Session = 5,
136+
Mtls = 6,
137+
Saml = 7,
138+
Ldap = 8,
139+
Form = 9,
140+
Other = 10,
141141
}
142142

143143
#[derive(Serialize, Deserialize, Debug, Hash, PartialEq, Eq, Clone, Default)]

0 commit comments

Comments
 (0)