RSDResourceType
public struct RSDResourceType : RawRepresentable, Equatable, Hashable, Codable
RSDResourceType
is an extendable struct for describing the type of a resource.
By default, these values will map to the file extension.
-
Declaration
Swift
public let rawValue: String
-
Declaration
Swift
public init(rawValue: String)
-
JSON file.
Declaration
Swift
public static let json: RSDResourceType
-
PList file.
Declaration
Swift
public static let plist: RSDResourceType
-
HTML file.
Declaration
Swift
public static let html: RSDResourceType
-
PDF file.
Declaration
Swift
public static let pdf: RSDResourceType
-
PNG image file.
Declaration
Swift
public static let png: RSDResourceType
-
JPEG image file.
Declaration
Swift
public static let jpeg: RSDResourceType