BSONDecimal128
public struct BSONDecimal128 : BSONValue, Equatable, Codable, CustomStringConvertible
extension BSONDecimal128: Hashable
extension BSONDecimal128: Overwritable
A struct to represent the BSON Decimal128 type.
-
Declaration
Swift
public var description: String { get }
-
Initializes a
BSONDecimal128
value from the providedString
.Throws
Throws:
- A
BSONError.InvalidArgumentError
if the string does not represent a BSONDecimal128 encodable value.
Declaration
Swift
public init(_ data: String) throws
- A
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to: Encoder) throws
-
Declaration
Swift
public static func == (lhs: BSONDecimal128, rhs: BSONDecimal128) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)