Instance Propertyswift-bson 0.3.1BSONABI
options
BSON.Regex.swift:10var options: Options
var options: Options
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct Regex
A MongoDB regex.
@frozen enum BSON
The namespace for all BSON types.
@frozen struct Options
A set of MongoDB regex matching options.
init(pattern: String, options: Options)
init(pattern: String, options: some StringProtocol) throws
var pattern: String
var size: Int { get }
The size of this regex when encoded with interior and trailing null bytes.
@frozen enum Option
A MongoDB regex matching option.
@frozen struct OptionError
A MongoDB regex matching options string contained an invalid unicode scalar.