Crate pastebin [−] [src]
A Pastebin server library.
This library implements a very simple pastebin service, which is basically a web-interface
between a user and a database (be it MongoDB, or hash table, or MariaDB, or anything else).
The library is database-agnostic, which means a database wrapper has to be implemented for a
desired DB kind my implementing a quite simple interface DbInterface
.
Iron is used as a web-backend, so all its features could be utilized (at least theoretically). The actual code is in the web module, useful examples are also there.
Modules
web |
Module that deals with a web server. |
Structs
PasteEntry |
A paste representation. As simple as that. |
Enums
Error |
Container for errors that might happen during processing requests. |
Traits
DbInterface |
Interface to a database. |