Initializerswift-ip 0.3.0Firewalls->IP
init(number:domain:name:)
IP.AS.swift:20init(number: ASN, domain: String, name: String)
init(number: ASN, domain: String, name: String)
s2IPAAO9FirewallsE2ASV6number6domain4nameAebCE3ASNV_S2Stcfc
What are these?8E7VN
import Firewalls
import IP
This Foundation-free module provides tools for parsing and formatting IP addresses, and data structures for performing efficient IP address lookups.
@frozen struct AS
Describes an Autonomous System (AS).
@frozen enum IP
The namespace for IP types.
@frozen struct ASN
An Autonomous System Number (ASN).
@frozen struct String
A Unicode string value that is a collection of characters.
init(bson: BSON.DocumentDecoder<CodingKey>) throws
init(number: IP.ASN, metadata: Metadata)
var domain: String
var metadata: Metadata { get }
var name: String
let number: ASN
func encode(to bson: inout BSON.DocumentEncoder<CodingKey>)
@frozen enum CodingKey
@frozen struct Metadata
The human-readable name
and associated domain
of an Autonomous System.