Enumerationswift-package-manager 6.0.1PackageModel
Rule
Resource.swift:46enum Rule
enum Rule
import PackageModel
struct Resource
An individual resource file and its corresponding rule.
case process(localization: String?)
case copy
case embedInCode
init(from decoder: any Decoder) throws
init(rule: Rule, path: AbsolutePath)
static let localizationDirectoryExtension: String
var destination: RelativePath { get throws }
The relative location of the resource in the resource bundle.
let path: AbsolutePath
The path of the resource file.
let rule: Rule
The rule associated with this resource.
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.
init(from decoder: any Decoder) throws
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.