Timestamp
public struct Timestamp : BSONValue, Equatable, Codable
A struct to represent the BSON Timestamp type.
-
Declaration
Swift
public var bsonType: BSONType { get }
-
A timestamp representing seconds since the Unix epoch.
Declaration
Swift
public let timestamp: UInt32
-
An incrementing ordinal for operations within a given second.
Declaration
Swift
public let increment: UInt32
-
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 -> Timestamp