Trait plaid::api::product::Product
[−]
[src]
pub trait Product: Any + Sync + Debug { type Data: Debug + Any + Decodable; fn endpoint<'a, 'b>(&self, &'b Payload) -> &'a str; fn description<'a>(&self) -> &'a str; }
Anything that implements Product
can be used as a product.
Associated Types
Required Methods
fn endpoint<'a, 'b>(&self, &'b Payload) -> &'a str
The endpoint of the product for the given payload.
With leading slash, e.g /connect/get
fn description<'a>(&self) -> &'a str
A textual representation of the product, e.g Connect