Decodable
A type that can decode itself from an external representation.
protocol Decodable
Requirements
init(from: Decoder
) throws Creates a new instance by decoding from the given decoder.
Citizens in Swift
Subtypes
protocol SIMD
A SIMD vector of a fixed number of elements.
Extension in BSON
Subtypes
Extension in Meow
Subtypes
protocol KeyPathQueryable
protocol KeyPathQueryableModel
protocol ModelProjection
protocol MutableModel
The base specification of any readable Meow model, containing a collectionName and a _id. MutableModel must be implemented using
Codable
, and always implements ReadableModel. MutableModels can be saved, whereas Readableodels cannotprotocol ReadableModel
The base specification of any readable Meow model, containing a collectionName and a _id. ReadableModel must be implemented using
Decodable
. ReadableModel is currently used for any entity that is queryable. MutableModels can be saved, whereas Readableodels cannot
Extension in ArgumentParser
Subtypes
protocol AsyncParsableCommand
A type that can be executed asynchronously, as part of a nested tree of commands.
protocol ParsableArguments
A type that can be parsed from a program’s command-line arguments.
protocol ParsableCommand
A type that can be executed as part of a nested tree of commands.
Extension in Vapor
Subtypes
protocol Content
Convertible to / from content in an HTTP message.