Initializerswift-ip 0.3.0IPinfo
init(json:)
IPinfo.ASNRange.swift:59init(json: JSON.ObjectDecoder<CodingKey>) throws
init(json: JSON.ObjectDecoder<CodingKey>) throws
s6IPinfoAAO8ASNRangeV4jsonAD7JSONAST4JSONV12JSONDecodingE13ObjectDecoderVy_AD9CodingKeyOG_tKcfc
What are these?5V63N
import IPinfo
@frozen struct ASNRange
@frozen enum IPinfo
The namespace for IPinfo types.
@frozen struct JSON
A container for some UTF-8 encoded JSON source text.
@frozen struct ObjectDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == String
A thin wrapper around a native Swift dictionary providing an efficient decoding interface for a JSON object.
@frozen enum CodingKey
init(first: IP.V6, last: IP.V6, asn: IP.ASN, name: String, domain: String)
let asn: IP.ASN
let domain: String
let first: IP.V6
let last: IP.V6
let name: String
func encode(to json: inout JSON.ObjectEncoder<CodingKey>)