Mongo.Collection.collection

You're seeing just the macro collection, go back to Mongo.Collection module for more information.
Link to this macro

collection(name, list)

View Source (macro)

Defines a struct as a collection with id generator and a collection.

Inside a collection block, each attribute is defined through the attribute/3 macro.