BSON
public enum BSONextension BSON: ExpressibleByIntegerLiteralextension BSON: ExpressibleByFloatLiteralextension BSON: ExpressibleByBooleanLiteralextension BSON: ExpressibleByDictionaryLiteralextension BSON: ExpressibleByStringLiteralextension BSON: ExpressibleByArrayLiteralextension BSON: Equatableextension BSON: Hashableextension BSON: CodableEnum representing a BSON value.
See also
bsonspec.org- 
                  
                  A BSON document. DeclarationSwift case document(BSONDocument)
- 
                  
                  A BSON int32. DeclarationSwift case int32(Int32)
- 
                  
                  A BSON int64. DeclarationSwift case int64(Int64)
- 
                  
                  A BSON Decimal128 DeclarationSwift case decimal128(BSONDecimal128)
- 
                  
                  A BSON Array DeclarationSwift indirect case array([BSON])
- 
                  
                  A BSON Boolean DeclarationSwift case bool(Bool)
- 
                  
                  A BSON UTC datetime. DeclarationSwift case datetime(Date)
- 
                  
                  A BSON double. DeclarationSwift case double(Double)
- 
                  
                  A BSON string. DeclarationSwift case string(String)
- 
                  
                  A BSON Symbol DeclarationSwift case symbol(BSONSymbol)
- 
                  
                  A BSON Timestamp DeclarationSwift case timestamp(BSONTimestamp)
- 
                  
                  A BSON Binary DeclarationSwift case binary(BSONBinary)
- 
                  
                  A BSON Regex DeclarationSwift case regex(BSONRegularExpression)
- 
                  
                  A BSON ObjectID DeclarationSwift case objectID(_: BSONObjectID = BSONObjectID())
- 
                  
                  A BSON DBPointer DeclarationSwift case dbPointer(BSONDBPointer)
- 
                  
                  A BSON Code DeclarationSwift case code(BSONCode)
- 
                  
                  A BSON Code with Scope DeclarationSwift case codeWithScope(BSONCodeWithScope)
- 
                  
                  A BSON Null DeclarationSwift case null
- 
                  
                  A BSON Undefined DeclarationSwift case undefined
- 
                  
                  A BSON MinKey DeclarationSwift case minKey
- 
                  
                  A BSON MaxKey DeclarationSwift case maxKey
- 
                  
                  Initialize a BSONfrom an integer. On 64-bit systems, this will result in an.int64. On 32-bit systems, this will result in an.int32.DeclarationSwift public init(_ int: Int)
- 
                  
                  If this BSONis an.int32, return it as anInt32. Otherwise, return nil.DeclarationSwift public var int32Value: Int32? { get }
- 
                  
                  If this BSONis an.int64, return it as anInt64. Otherwise, return nil.DeclarationSwift public var int64Value: Int64? { get }
- 
                  
                  If this BSONis an.decimal128, return it as anBSONDecimal128. Otherwise, return nil.DeclarationSwift public var decimal128Value: BSONDecimal128? { get }
- 
                  
                  If this BSONis a.document, return it as aBSONDocument. Otherwise, return nil.DeclarationSwift public var documentValue: BSONDocument? { get }
- 
                  
                  If this BSONis a.array, return it as a[BSON]. Otherwise, return nil.DeclarationSwift public var arrayValue: [BSON]? { get }
- 
                  
                  If this BSONis a.bool, return it as aBool. Otherwise, return nil.DeclarationSwift public var boolValue: Bool? { get }
- 
                  
                  If this BSONis a.date, return it as aDate. Otherwise, return nil.DeclarationSwift public var dateValue: Date? { get }
- 
                  
                  If this BSONis a.double, return it as aDouble. Otherwise, return nil.DeclarationSwift public var doubleValue: Double? { get }
- 
                  
                  If this BSONis a.string, return it as aString. Otherwise, return nil.DeclarationSwift public var stringValue: String? { get }
- 
                  
                  If this BSONis a.symbol, return it as aBSONSymbol. Otherwise, return nil.DeclarationSwift public var symbolValue: BSONSymbol? { get }
- 
                  
                  If this BSONis a.timestamp, return it as aBSONTimestamp. Otherwise, return nil.DeclarationSwift public var timestampValue: BSONTimestamp? { get }
- 
                  
                  If this BSONis a.binary, return it as aBSONBinary. Otherwise, return nil.DeclarationSwift public var binaryValue: BSONBinary? { get }
- 
                  
                  If this BSONis a.regex, return it as aBSONRegularExpression. Otherwise, return nil.DeclarationSwift public var regexValue: BSONRegularExpression? { get }
- 
                  
                  If this BSONis a.objectID, return it as aBSONObjectID. Otherwise, return nil.DeclarationSwift public var objectIDValue: BSONObjectID? { get }
- 
                  
                  If this BSONis a.dbPointer, return it as aBSONDBPointer. Otherwise, return nil.DeclarationSwift public var dbPointerValue: BSONDBPointer? { get }
- 
                  
                  If this BSONis a.codeWithScope, return it as aBSONCodeWithScope. Otherwise, return nil.DeclarationSwift public var codeWithScopeValue: BSONCodeWithScope? { get }
- 
                  
                  Return this BSON as an Intif possible. This will coerce non-integer numeric cases (e.g..double) into anIntif such coercion would be lossless.DeclarationSwift public func toInt() -> Int?
- 
                  
                  Return this BSON as an Int32if possible. This will coerce numeric cases (e.g..double) into anInt32if such coercion would be lossless.DeclarationSwift public func toInt32() -> Int32?
- 
                  
                  Return this BSON as an Int64if possible. This will coerce numeric cases (e.g..double) into anInt64if such coercion would be lossless.DeclarationSwift public func toInt64() -> Int64?
- 
                  
                  Return this BSON as a Doubleif possible. This will coerce numeric cases (e.g..int32) into aDoubleif such coercion would be lossless.DeclarationSwift public func toDouble() -> Double?
- 
                  
                  Return this BSON as a BSONDecimal128if possible. This will coerce numeric cases (e.g..double) into aBSONDecimal128if such coercion would be lossless.DeclarationSwift public func toDecimal128() -> BSONDecimal128?
- 
                  
                  Initialize a BSONfrom an integer. On 64-bit systems, this will result in an.int64. On 32-bit systems, this will result in an.int32.DeclarationSwift public init(integerLiteral value: Int)
- 
                  
                  DeclarationSwift public init(floatLiteral value: Double)
- 
                  
                  DeclarationSwift public init(booleanLiteral value: Bool)
- 
                  
                  DeclarationSwift public init(dictionaryLiteral elements: (String, BSON)...)
- 
                  
                  DeclarationSwift public init(stringLiteral value: String)
- 
                  
                  DeclarationSwift public init(arrayLiteral elements: BSON...)
- 
                  
                  DeclarationSwift public init(from decoder: Decoder) throws
- 
                  
                  DeclarationSwift public func encode(to encoder: Encoder) throws
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           BSON Enumeration Reference
      BSON Enumeration Reference