Crate manor

Source
Expand description

A highly-abstracted MongoDB ORM, with additional helpers for GridFS operations and document links.

Currently not production-ready, still very much in an early stage.

Modules§

gridfs
Submodule containing GridFS-related operations

Structs§

Client
A Manor client instance, wrapping the MongoDB client and a single database name.
Collection
A wrapper around mongodb::Collection with abstractions for common operations
GridFS
A wrapper for MongoDB’s GridFS
GridFile
A representation of a file in GridFS
Link
A Link struct, representing a document in another collection. The referenced model must implement Model

Enums§

Error
An enum describing possible Manor errors.

Traits§

Model
A model trait. Likely should not be directly implemented, but instead generated with the #[schema(...)] attribute.

Type Aliases§

MResult
Utility type for functions returning Error

Attribute Macros§

schema
This macro generates a filled-out Model from a template struct, as well as an associated Builder. The attribute itself follows this syntax: