ReadConcern
public struct ReadConcern : Codable
extension ReadConcern: CustomStringConvertible
extension ReadConcern: Equatable
A struct to represent a MongoDB read concern.
-
An enumeration of possible ReadConcern levels.
See moreDeclaration
Swift
public enum Level : RawRepresentable, Codable, Equatable
-
The level of this
ReadConcern
, ornil
if the level is not set.Declaration
Swift
public var level: ReadConcern.Level?
-
Indicates whether this
ReadConcern
is the server default.Declaration
Swift
public var isDefault: Bool { get }
-
Initialize a new
ReadConcern
from aString
corresponding to a read concern level.Declaration
Swift
public init(_ level: String)
-
Initialize a new empty
ReadConcern
.Declaration
Swift
public init()
-
Returns the relaxed extended JSON representation of this
ReadConcern
. On error, an empty string will be returned.Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public static func == (lhs: ReadConcern, rhs: ReadConcern) -> Bool