1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* InternetData API
*
* The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
*
* The version of the OpenAPI document: 2026.11.17
* Contact: support@internetdata.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SshDetail {
/// The port the server answered on.
#[serde(rename = "port", skip_serializing_if = "Option::is_none")]
pub port: Option<i32>,
/// Its banner.
#[serde(rename = "banner", skip_serializing_if = "Option::is_none")]
pub banner: Option<String>,
/// Its host key's fingerprint.
#[serde(rename = "host_key_fp", skip_serializing_if = "Option::is_none")]
pub host_key_fp: Option<String>,
/// A session was set up.
#[serde(rename = "session_ok", skip_serializing_if = "Option::is_none")]
pub session_ok: Option<bool>,
/// The first day it answered.
#[serde(rename = "first_seen", skip_serializing_if = "Option::is_none")]
pub first_seen: Option<String>,
/// The last day it did.
#[serde(rename = "last_seen", skip_serializing_if = "Option::is_none")]
pub last_seen: Option<String>,
}
impl SshDetail {
pub fn new() -> SshDetail {
SshDetail {
port: None,
banner: None,
host_key_fp: None,
session_ok: None,
first_seen: None,
last_seen: None,
}
}
}