Decodable
A type that can decode itself from an external representation.
protocol Decodable
A type that can decode itself from an external representation.
protocol Decodable
init(from: Decoder) throws
Creates a new instance by decoding from the given decoder.
Array
When Element
conforms to Decodable
Bool
ClosedRange
When Bound
conforms to Comparable
and Bound
conforms to Decodable
CollectionDifference
When ChangeElement
conforms to Decodable
and ChangeElement
conforms to Encodable
CollectionDifference.Change
When ChangeElement
conforms to Decodable
and ChangeElement
conforms to Encodable
ContiguousArray
When Element
conforms to Decodable
Dictionary
When Key
conforms to Decodable
, Key
conforms to Hashable
, and Value
conforms to Decodable
Double
Duration
Float
Float16
Int
Int16
Int32
Int64
Int8
Optional
When Wrapped
conforms to Decodable
PartialRangeFrom
When Bound
conforms to Comparable
and Bound
conforms to Decodable
PartialRangeThrough
When Bound
conforms to Comparable
and Bound
conforms to Decodable
PartialRangeUpTo
When Bound
conforms to Comparable
and Bound
conforms to Decodable
Range
When Bound
conforms to Comparable
and Bound
conforms to Decodable
SIMD16
SIMD2
SIMD3
SIMD32
SIMD4
SIMD64
SIMD8
SIMDMask
Set
When Element
conforms to Decodable
and Element
conforms to Hashable
String
UInt
UInt16
UInt32
UInt64
UInt8
AffineTransform
AttributeScopes.FoundationAttributes.ByteCountAttribute.Component
AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit
AttributeScopes.FoundationAttributes.DateFieldAttribute.Field
AttributeScopes.FoundationAttributes.MeasurementAttribute.Component
AttributeScopes.FoundationAttributes.NumberFormatAttributes.NumberPartAttribute.NumberPart
AttributeScopes.FoundationAttributes.NumberFormatAttributes.SymbolAttribute.Symbol
AttributeScopes.FoundationAttributes.PersonNameComponentAttribute.Component
AttributedString
CGFloat
CGPoint
CGRect
CGSize
Calendar
CharacterSet
CodableConfiguration
Data
Date
DateComponents
DateInterval
Decimal
IndexPath
IndexSet
InflectionRule
Locale
Measurement
When UnitType
inherits from Unit
Morphology
Morphology.CustomPronoun
Morphology.GrammaticalGender
Morphology.GrammaticalNumber
Morphology.PartOfSpeech
PersonNameComponents
TimeZone
URL
URLComponents
UUID
OrderedDictionary
When Key
conforms to Decodable
, Key
conforms to Hashable
, and Value
conforms to Decodable
OrderedSet
When Element
conforms to Decodable
and Element
conforms to Hashable
AnyPrimitive
Binary
Decimal128
Document
JavaScriptCode
JavaScriptCodeWithScope
MaxKey
MinKey
Null
ObjectId
RegularExpression
Timestamp
Field
Reference
When M
conforms to ReadableModel
ReferenceField
Collation
Collation.Alternate
Collation.CaseFirstOptions
Collation.MaxVariable
Collation.Strength
MongoError.Kind
MongoError.Reason
MongoInvalidUriError
MongoInvalidUriError.Reason
MongoNamespace
MongoProtocolParsingError
MongoProtocolParsingError.Reason
MongoProtocolSerializationError
MongoProtocolSerializationError.Reason
MongoWriteError
ReadConcern
ReadConcern.Level
ServerHandshake
SessionIdentifier
WireVersion
WriteConcern
WriteConcern.Acknowledgement
WriteConcernError
ChangeStreamNotification
ChangeStreamNotification.ChangeStreamNamespace
ChangeStreamNotification.OperationType
ChangeStreamNotification.UpdateDescription
GridFSFile
MongoIndex
CollectionDescription
CountCommand
CountReply
CursorReply
DatabaseDescription
DeleteCommand
DeleteCommand.Limit
DeleteCommand.Removal
DeleteReply
DistinctCommand
DistinctReply
DropCollectionCommand
DropDatabaseCommand
FindAndModifyCommand
FindAndModifyReply
FindAndModifyReturnValue
FindCommand
InsertCommand
InsertReply
ListDatabasesResponse
UpdateCommand
UpdateCommand.UpdateRequest
UpdateReply
Errno
FileDescriptor
FileDescriptor.AccessMode
FileDescriptor.OpenOptions
FileDescriptor.SeekOrigin
FilePath
FilePath.Component
FilePath.ComponentView
FilePath.Root
FilePermissions