Skip to content

Commit d444a77

Browse files
committed
Simplify structs
1 parent 66daf8c commit d444a77

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

ddtelemetry/src/data/payloads.rs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,22 @@ pub enum Method {
123123
Other = 9, //This is specified as "*" in the OpenAPI spec
124124
}
125125

126-
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Hash, Clone)]
127-
#[serde(rename_all = "UPPERCASE")]
128-
#[repr(C)]
129-
pub enum Authentication {
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,
141-
}
126+
// #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Hash, Clone)]
127+
// #[serde(rename_all = "UPPERCASE")]
128+
// #[repr(C)]
129+
// pub enum Authentication {
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,
141+
// }
142142

143143
#[derive(Serialize, Deserialize, Debug, Hash, PartialEq, Eq, Clone, Default)]
144144
pub struct Endpoint {
@@ -150,14 +150,14 @@ pub struct Endpoint {
150150
pub path: Option<String>,
151151
pub operation_name: String,
152152
pub resource_name: String,
153-
#[serde(default)]
154-
pub request_body_type: Option<Vec<String>>,
155-
#[serde(default)]
156-
pub response_body_type: Option<Vec<String>>,
157-
#[serde(default)]
158-
pub response_code: Option<Vec<i32>>,
159-
#[serde(default)]
160-
pub authentication: Option<Vec<Authentication>>,
161-
#[serde(default)]
162-
pub metadata: Option<serde_json::Value>,
153+
// #[serde(default)]
154+
// pub request_body_type: Option<Vec<String>>,
155+
// #[serde(default)]
156+
// pub response_body_type: Option<Vec<String>>,
157+
// #[serde(default)]
158+
// pub response_code: Option<Vec<i32>>,
159+
// #[serde(default)]
160+
// pub authentication: Option<Vec<Authentication>>,
161+
// #[serde(default)]
162+
// pub metadata: Option<serde_json::Value>,
163163
}

0 commit comments

Comments
 (0)