Encoder

extension Encoder

Encodable

  • Undocumented

    Declaration

    Swift

    public func encodeSingle<T>(_ value: T) throws where T : Encodable
  • Undocumented

    Declaration

    Swift

    public func encode<T>(_ value: T, for key: String) throws where T : Encodable
  • Undocumented

    Declaration

    Swift

    public func encode<T, K>(_ value: T, for key: K) throws where T : Encodable, K : CodingKey
  • Undocumented

    Declaration

    Swift

    public func encodeIf<T>(_ value: T?, for key: String) throws where T : Encodable
  • Undocumented

    Declaration

    Swift

    public func encodeIf<T, K>(_ value: T?, for key: K) throws where T : Encodable, K : CodingKey

Any

  • Undocumented

    Declaration

    Swift

    public func encodeAny<T>(_ value: T, for key: String) throws
  • Undocumented

    Declaration

    Swift

    public func encodeAny<T, K>(_ value: T, for key: K) throws where K : CodingKey
  • Undocumented

    Declaration

    Swift

    public func encodeAnyIf<T>(_ value: T?, for key: String) throws
  • Undocumented

    Declaration

    Swift

    public func encodeAnyIf<T, K>(_ value: T?, for key: K) throws where K : CodingKey

Date

Subscript

  • Undocumented

    Declaration

    Swift

    subscript<T>(stringKey: String) -> T? where T : Encodable { get nonmutating set }
  • Undocumented

    Declaration

    Swift

    subscript<T, K>(codingKey: K) -> T? where T : Encodable, K : CodingKey { get nonmutating set }
  • Undocumented

    Declaration

    Swift

    subscript<T>(stringKey: String) -> T? { get nonmutating set }
  • Undocumented

    Declaration

    Swift

    subscript<T, K>(codingKey: K) -> T? where K : CodingKey { get nonmutating set }

Safe

  • Undocumented

    Declaration

    Swift

    func encodeSafe<T>(_ value: T?, for stringKey: String) throws where T : Encodable
  • Undocumented

    Declaration

    Swift

    func encodeSafe<T, K>(_ value: T?, for codingKey: K) throws where T : Encodable, K : CodingKey

SafeAny

  • Undocumented

    Declaration

    Swift

    func encodeSafeAny<T>(_ value: T?, for stringKey: String) throws
  • Undocumented

    Declaration

    Swift

    func encodeSafeAny<T, K>(_ value: T?, for codingKey: K) throws where K : CodingKey