mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
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:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user