Enumerationswift-ip 0.3.0Firewalls->IP
CodingKey
IP.AS.swift:42@frozen enum CodingKey
@frozen enum CodingKey
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.
case number
case domain
case name
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 struct Metadata
The human-readable name
and associated domain
of an Autonomous System.
protocol BitwiseCopyable
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: String)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)