14 lines
230 B
Rust
14 lines
230 B
Rust
pub struct IpAddress {
|
|
pub ipv4: Option<String>,
|
|
pub ipv6: Option<String>,
|
|
}
|
|
|
|
impl IpAddress {
|
|
pub fn new(
|
|
ipv4: Option<String>,
|
|
ipv6: Option<String>
|
|
) -> Self {
|
|
Self { ipv4, ipv6 }
|
|
}
|
|
}
|