Enumerationswift-package-manager 6.0.3PackageModel
Origin
BinaryModule.swift:78enum Origin
enum Origin
import PackageModel
final class BinaryModule
case remote(url: String)
Represents an artifact that was downloaded from a remote URL.
case local
Represents an artifact that was available locally.
init(name: String, kind: Kind, path: AbsolutePath, origin: Origin)
override class var typeDescription: String { get }
Description of the module type used in swift package describe
output. Preserved for backwards compatibility.
var artifactPath: AbsolutePath { get }
The binary artifact path.
var containsExecutable: Bool { get }
let kind: Kind
The kind of binary artifact.
let origin: Origin
The original source of the binary artifact.
enum Kind
protocol Equatable
A type that can be compared for value equality.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.