BSONBinary
public struct BSONBinary : Equatable, HashableA struct to represent the BSON Binary type.
- 
                  
                  The binary data. DeclarationSwift public let data: ByteBuffer
- 
                  
                  The binary subtype for this data. DeclarationSwift public let subtype: Subtype
- 
                  
                  Subtypes for BSON Binary values. See moreDeclarationSwift public struct Subtype : Equatable, Hashable, RawRepresentable, Codable
- 
                  
                  Initializes a BSONBinaryinstance from aUUID.Throws - BSONError.InvalidArgumentErrorif a- BSONBinarycannot be constructed from this UUID.
 DeclarationSwift public init(from uuid: UUID) throws
- 
                  
                  Initializes a BSONBinaryinstance from aDataobject and aSubtypesubtype. This will always create a copy of the data.Throws - BSONError.InvalidArgumentErrorif the provided data is incompatible with the specified subtype.
 DeclarationSwift public init(data: Data, subtype: Subtype) throws
- 
                  
                  Initializes a BSONBinaryinstance from a base64Stringand aSubtype.Throws - BSONError.InvalidArgumentErrorif the base64- Stringis invalid or if the provided data is incompatible with the specified subtype.
 DeclarationSwift public init(base64: String, subtype: Subtype) throws
- 
                  
                  Converts this BSONBinaryinstance to aUUID.Throws - BSONError.InvalidArgumentErrorif a non-UUID subtype is set on this- BSONBinary.
 DeclarationSwift public func toUUID() throws -> UUID
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           BSONBinary Structure Reference
      BSONBinary Structure Reference