Initializerswift-package-manager 6.0.3PackageModel
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
import PackageModel
struct Resource
An individual resource file and its corresponding rule.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
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.
enum Rule