RSDDelimiterSeparatedEncodable
public protocol RSDDelimiterSeparatedEncodable : Encodable
A special-case encodable that can be encoded to a comma-delimited string.
A csv-formatted file is a smaller format that might be suitable for saving data to a file that will be parsed into a table, but the elements must all conform to single value container encoding and they may not include any strings in the encoded value.
-
An ordered list of coding keys to use when encoding this object to a comma-separated string.
Declaration
Swift
static func codingKeys() -> [CodingKey]
-
fileTableHeader(with:)
Extension methodThe comma-separated list of header strings to use as the header in a CSV file.
Declaration
Swift
public static func fileTableHeader(with delimiter: String) -> String
-
delimiterEncodedString(with:)
Extension methodThe comma-separated string representing this object.
Declaration
Swift
public func delimiterEncodedString(with delimiter: String) throws -> String