PropertyName
public struct PropertyName : RawRepresentable, Hashable, Encodable
The name of a property that can be fetched from a Variable.
-
The corresponding value of the raw type.
Declaration
Swift
public let rawValue: String -
Creates a new instance with the specified raw value.
Declaration
Swift
public init(rawValue: String)Parameters
rawValueThe raw value to use for the new instance.
-
Creates a new instance with the specified raw value.
Declaration
Swift
public init(_ rawValue: String)Parameters
rawValueThe raw value to use for the new instance.
-
The “File Size” property.
Declaration
Swift
public static var fileSize: PropertyName { get } -
The “File Extension” property.
Declaration
Swift
public static var fileExtension: PropertyName { get } -
The “Name” property.
Declaration
Swift
public static var name: PropertyName { get } -
Encodes this value into the given encoder.
Throws
This function throws an error if any values are invalid for the given encoder’s format.Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to write data to.
View on GitHub
PropertyName Structure Reference