annotation BSON::Options

Overview

This annotation can be used to set global serialization options.

# Use `camelize: "lower"` or `camelize: true` to set lower or higher camelcased properties on the target BSON.
@[BSON::Options(camelize: true)]
struct Model
  include BSON::Serializable
  # (…)
end

Defined in: