Enumerationswift-mongodb 0.29.3MongoQL->Mongo
CodingKey
Mongo.Timeseries.swift:27@frozen enum CodingKey
@frozen enum CodingKey
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoQL
@frozen struct Timeseries
enum Mongo
case timeField
case metaField
case granularity
init(bson: BSON.DocumentDecoder<CodingKey>) throws
init(timeField: String, metaField: String? = nil, granularity: Granularity = .seconds)
let granularity: Granularity
let metaField: String?
let timeField: String
func encode(to bson: inout BSON.DocumentEncoder<CodingKey>)
@frozen enum Granularity
protocol BitwiseCopyable
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: String)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)