RSDStringSeparatedEncodingFormat

public protocol RSDStringSeparatedEncodingFormat

A protocol that can be used to define the keys and header to use in a string-separated file.

  • The string to use as the separator. For example, a comma-delimited file uses a , character.

    Declaration

    Swift

    var encodingSeparator: String { get }
  • The content type for the file.

    Declaration

    Swift

    var contentType: String { get }
  • The file extension for this file type.

    Declaration

    Swift

    var fileExtension: String { get }
  • A string that includes a header for the file. The columns in the table should be separated using the encodingSeparator.

    Declaration

    Swift

    func fileTableHeader() -> String
  • A list of the coding keys to use to build the delimited string for a single Element in an Array.

    Declaration

    Swift

    func codingKeys() -> [CodingKey]