io.github.methrat0n.restruct.handlers.bson.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restruct-bson-handler_2.12 Show documentation
Show all versions of restruct-bson-handler_2.12 Show documentation
Obtains any format from your class in just one line
The newest version!
package io.github.methrat0n.restruct.handlers
import reactivemongo.bson.{ BSONHandler, BSONValue }
package object bson {
type BsonHandler[T] = BSONHandler[BSONValue, T]
object BsonHandler {
def apply[T](read: BSONValue => T, write: T => BSONValue): BsonHandler[T] = BSONHandler[BSONValue, T](read, write)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy