Extensions

The following extensions are available globally.

  • Declaration

    Swift

    extension JSONDecoder: BodyDecoder
  • Declaration

    Swift

    extension JSONEncoder: BodyEncoder
  • Codable String Conversion Extension.

    See more

    Declaration

    Swift

    extension String
    extension String: Identifier
  • Int

    Extends Int to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `Int`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension Int: Identifier
  • Extends Int8 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `Int8`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension Int8: Identifier
  • Extends Int16 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `Int16`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension Int16: Identifier
  • Extends Int32 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `Int32`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension Int32: Identifier
  • Extends Int64 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `Int64`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension Int64: Identifier
  • Extends UInt to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `UInt`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension UInt: Identifier
  • Extends UInt8 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `UInt8`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension UInt8: Identifier
  • Extends UInt16 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `UInt16`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension UInt16: Identifier
  • Extends UInt32 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `UInt32`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension UInt32: Identifier
  • Extends UInt64 to comply to the Identifier protocol.

    Usage Example:

     // The Identifier used in the Id field could be an `UInt64`.
     public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
    
    See more

    Declaration

    Swift

    extension UInt64: Identifier
  • Declaration

    Swift

    extension Double: Identifier
  • Declaration

    Swift

    extension Float: Identifier
  • Declaration

    Swift

    extension Bool: Identifier
  • Declaration

    Swift

    extension UUID: Identifier