Derives a CodecBson for a case class by building a call to bsonCaseCodecN
.
Derives a CodecBson for a case class by building a call to bsonCaseCodecN
. Make sure to have Bson._ imported wherever you use this.
a case class - i.e. it has a companion object with an apply and unapply method that each match the primary constructor's signature.
if C is a case class, a working CodecBson. if not, who knows.
Derives a DecodeBson for a case class by building a call to bdecodeN
f.
Derives a DecodeBson for a case class by building a call to bdecodeN
f. Make sure to have Bson._ imported wherever you use this.
a case class - i.e. it has a companion object with an apply method that matches the primary constructor's signature.
if C is a case class, a working CodecBson. if not, who knows.
Derives a EncodeBson for a case class by building a call to bencodeN
f.
Derives a EncodeBson for a case class by building a call to bencodeN
f. Make sure to have Bson._ imported wherever you use this.
a case class - i.e. it has a companion object with an unapply method that is compatible with the primary constructor's signature.
if C is a case class, a working CodecBson. if not, who knows.
this object provides several macro implementations for automatically deriving encode and decode type classes for case classes. they all work about the same way: