pub struct Service {
pub name: String,
pub product: Option<String>,
pub version: Option<String>,
pub extra_info: Option<String>,
pub method: ServiceMethod,
pub confidence: u8,
pub os_type: Option<String>,
pub device_type: Option<String>,
pub tunnel: Option<String>,
pub cpes: Option<Vec<String>>,
}
Expand description
Service information for a port
Fields§
§name: String
Service name
product: Option<String>
Product name
version: Option<String>
Product version
extra_info: Option<String>
Additional service information
method: ServiceMethod
Method used to determine service
confidence: u8
Confidence level in service detection (0-10)
os_type: Option<String>
Operating system type
device_type: Option<String>
Device type
tunnel: Option<String>
Tunnel type (if service is tunneled)
cpes: Option<Vec<String>>
Common Platform Enumeration (CPE) names
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more