type

abstract val type: BsonType(source)

The type of this value.

To access its value, see the accessor function corresponding to this type. All other accessors will fail with BsonReaderException.