init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s23PackageCollectionsModel0a10CollectionC0O2V1O0D0V0A0V4fromAIs7Decoder_p_tKcfc
What are these?YDVR
import PackageCollectionsModel
struct Package
enum PackageCollectionModel
enum V1
struct Collection
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(url: URL, identity: String? = nil, summary: String?, keywords: [String]?, versions: [PackageCollectionModel.V1.Collection.Package.Version], readmeURL: URL?, license: PackageCollectionModel.V1.License?)
Creates a Package
let identity: String?
Package identity for registry (https://github.com/swiftlang/swift-package-manager/blob/main/Documentation/PackageRegistry/Registry.md#36-package-identification).
let keywords: [String]?
An array of keywords that the package is associated with.
let license: PackageCollectionModel.V1.License?
The package’s current license info
let readmeURL: URL?
The URL of the package’s README.
let summary: String?
A description of the package.
let url: URL
The URL of the package. Currently only Git repository URLs are supported.
let versions: [PackageCollectionModel.V1.Collection.Package.Version]
An array of version objects representing the most recent and/or relevant releases of the package.
struct Version