PlatformVersion
PackageCollectionModel+v1.swift:257struct PlatformVersion
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (10) members.
Types
struct Collection
struct Compatibility
Compatible platform and Swift version.
struct License
struct Platform
struct Product
enum ProductType
The type of product.
struct Signature
Package collection signature and associated metadata
struct SignedCollection
A signed package collection. The only difference between this and
Collection
is the presence ofsignature
.struct Signer
struct Target
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.
Type members
init(from: any Decoder
) throws init(name: String, version: String
) Creates a
PlatformVersion
Instance members
let name: String
The name of the platform (e.g., macOS, Linux, etc.).
let version: String
The semantic version of the platform.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.