Package
PackageCollectionModel+v1.swift:81struct Package
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (11) members.
Types
Type members
init(from: any Decoder
) throws init(name: String, overview: String?, keywords: [String]?, packages: [PackageCollectionModel.V1.Collection.Package], formatVersion: PackageCollectionModel.FormatVersion, revision: Int?, generatedAt: Date, generatedBy: Author?
) Creates a
Collection
Instance members
let formatVersion: PackageCollectionModel.FormatVersion
The version of the format to which the collection conforms.
let generatedAt: Date
When the package collection was generated.
let generatedBy: Author?
The author of this package collection.
let keywords: [String]?
An array of keywords that the collection is associated with.
let name: String
The name of the package collection, for display purposes only.
let overview: String?
A description of the package collection.
let packages: [PackageCollectionModel.V1.Collection.Package]
An array of package metadata objects
let revision: Int?
The revision number of this package collection.
Citizens in PackageCollectionsModel
Conformances
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
Types
Type members
init(from: any Decoder
) throws init(url: URL, identity: String?, summary: String?, keywords: [String]?, versions: [PackageCollectionModel.V1.Collection.Package.Version], readmeURL: URL?, license: PackageCollectionModel.V1.License?
) Creates a
Package
Instance members
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.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.