orthogonal design
This commit is contained in:
12 files changed
+266
-161
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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 }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user