mirror of
https://github.com/edu4rdshl/unimap.git
synced 2026-07-17 23:24:49 +00:00
Clippy fixes.
This commit is contained in:
parent
3c8661bc24
commit
cde33efba1
1 changed files with 8 additions and 8 deletions
16
src/nmap.rs
16
src/nmap.rs
|
|
@ -13,13 +13,13 @@ lazy_static! {
|
||||||
.join(",");
|
.join(",");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Root {
|
pub struct Root {
|
||||||
pub nmaprun: Nmaprun,
|
pub nmaprun: Nmaprun,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Nmaprun {
|
pub struct Nmaprun {
|
||||||
pub scanner: String,
|
pub scanner: String,
|
||||||
|
|
@ -31,7 +31,7 @@ pub struct Nmaprun {
|
||||||
pub host: Option<Host>,
|
pub host: Option<Host>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Host {
|
pub struct Host {
|
||||||
pub starttime: String,
|
pub starttime: String,
|
||||||
|
|
@ -42,7 +42,7 @@ pub struct Host {
|
||||||
pub ports: Option<Ports>,
|
pub ports: Option<Ports>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Status {
|
pub struct Status {
|
||||||
pub state: String,
|
pub state: String,
|
||||||
|
|
@ -51,20 +51,20 @@ pub struct Status {
|
||||||
pub reason_ttl: String,
|
pub reason_ttl: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Address {
|
pub struct Address {
|
||||||
pub addr: Option<String>,
|
pub addr: Option<String>,
|
||||||
pub addrtype: Option<String>,
|
pub addrtype: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Hostnames {
|
pub struct Hostnames {
|
||||||
pub hostname: Option<Hostname>,
|
pub hostname: Option<Hostname>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Hostname {
|
pub struct Hostname {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|
@ -72,7 +72,7 @@ pub struct Hostname {
|
||||||
pub type_field: String,
|
pub type_field: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Ports {
|
pub struct Ports {
|
||||||
pub port: Vec<Port>,
|
pub port: Vec<Port>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue