mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Now we will generate proper resoure methods builder calls to instaniate the more or less valid method builders. However, it doesn't compile yet, and the 'to_parts()' method on resources is still missing.
33 lines
1.2 KiB
Rust
33 lines
1.2 KiB
Rust
// COPY OF 'src/rust/cmn.rs'
|
|
// DO NOT EDIT
|
|
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 for building methods of a particular resource type
|
|
pub trait ResourceMethodsBuilder: MarkerTrait {}
|
|
|
|
/// Identifies types which represent builders for a particular resource method
|
|
pub trait MethodBuilder: 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 {}
|
|
|
|
/// Identifies types which are used in API responses.
|
|
pub trait ResponseResult: MarkerTrait {}
|
|
|
|
/// Identifies types which are used in API requests.
|
|
pub trait RequestValue: MarkerTrait {}
|
|
|
|
/// Identifies types which are only used as part of other types, which
|
|
/// usually are carrying the `Resource` trait.
|
|
pub trait Part: MarkerTrait {}
|
|
|
|
/// Identifies types which are only used by other types internally.
|
|
/// They have no special meaning, this trait just marks them for completeness.
|
|
pub trait NestedType: MarkerTrait {}
|