Skip to content

Commit eedf067

Browse files
small fix 3
1 parent 500a248 commit eedf067

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

  • devolutions-gateway/src/api

devolutions-gateway/src/api/net.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,6 @@ pub async fn get_net_config(_token: crate::extract::NetScanToken) -> Result<Json
214214
Ok(Json(interfaces))
215215
}
216216

217-
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
218-
#[derive(Debug, Clone, Serialize)]
219-
pub struct InterfaceAddress {
220-
pub ip: IpAddr,
221-
pub prefixlen: u32,
222-
}
223-
224-
/// Interface's description
225217
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
226218
#[derive(Debug, Clone, Serialize)]
227219
pub struct NetworkInterface {
@@ -230,7 +222,6 @@ pub struct NetworkInterface {
230222
pub addr: Vec<Addr>,
231223
#[serde(skip_serializing_if = "Option::is_none")]
232224
pub mac_addr: Option<String>,
233-
/// Interface's index
234225
#[cfg_attr(feature = "openapi", schema(value_type = u32))]
235226
pub index: u32,
236227
}
@@ -243,7 +234,6 @@ pub enum Addr {
243234
V6(V6IfAddr),
244235
}
245236

246-
/// Netmask wrapper for IP address types
247237
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
248238
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
249239
pub struct Netmask<T>(pub T);

0 commit comments

Comments
 (0)