Symbol
public struct Symbol : BSONValue, CustomStringConvertible, Codable, Equatable
A struct to represent the deprecated Symbol type. Symbols cannot be instantiated, but they can be read from existing documents that contain them.
-
Declaration
Swift
public var bsonType: BSONType { get }
-
Declaration
Swift
public var description: String { get }
-
String representation of this
Symbol
.Declaration
Swift
public let stringValue: String
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to: Encoder) throws
-
Declaration
Swift
public func encode(to storage: DocumentStorage, forKey key: String) throws
-
Declaration
Swift
public static func from(iterator iter: DocumentIterator) throws -> Symbol