feat(hub): generate hub implementation and docs

This includes docs for the library usage.
It's totally great to be able to paste example code right were it
belongs, and also put the same elsewhere to compose more complex docs.
This commit is contained in:
Sebastian Thiel
2015-03-04 11:05:41 +01:00
parent 85171ceb97
commit 615a124654
9 changed files with 264 additions and 19 deletions

View File

@@ -1,5 +1,10 @@
use std::marker::MarkerTrait;
/// Identifies the Hub. There is only one per library, this trait is supposed
/// to make intended use more explicit.
/// The hub allows to access all resource methods more easily.
pub trait Hub: MarkerTrait {}
/// Identifies types which can be inserted and deleted.
/// Types with this trait are most commonly used by clients of this API.
pub trait Resource: MarkerTrait {}