Structureswift-ip 0.3.0Firewalls->IP
Metadata
IP.AS.Metadata.swift:7@frozen struct Metadata
@frozen struct Metadata
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.
let name: String
A human-readable name for the Autonomous System.
let domain: String
A web domain associated with the Autonomous System.
init(bson: BSON.DocumentDecoder<CodingKey>) throws
init(number: ASN, domain: String, name: String)
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
protocol Equatable
A type that can be compared for value equality.
protocol Sendable
init(domain: String, name: String)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.