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)
-
Declaration
Swift
public var hashValue: Int
-
Declaration
Swift
public static func ==(lhs: RSDResourceType, rhs: RSDResourceType) -> Bool
-
JSON file.
Declaration
Swift
public static let json = RSDResourceType(rawValue: "json")
-
PList file.
Declaration
Swift
public static let plist = RSDResourceType(rawValue: "plist")
-
HTML file.
Declaration
Swift
public static let html = RSDResourceType(rawValue: "html")
-
PDF file.
Declaration
Swift
public static let pdf = RSDResourceType(rawValue: "pdf")
-
PNG image file.
Declaration
Swift
public static let png = RSDResourceType(rawValue: "png")
-
JPEG image file.
Declaration
Swift
public static let jpeg = RSDResourceType(rawValue: "jpeg")