EndpointWithId

Trait EndpointWithId 

Source
pub trait EndpointWithId: Endpoint {
    type IdType: Display;

    // Provided methods
    fn format_id(id: &Self::IdType) -> String { ... }
    fn format_url(id: &str) -> String { ... }
}

Required Associated Types§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EndpointWithId for Backstory

Source§

impl EndpointWithId for Character

Source§

impl EndpointWithId for Core

Source§

impl EndpointWithId for Crafting

Source§

impl EndpointWithId for Equipment

Source§

impl EndpointWithId for Inventory

Source§

impl EndpointWithId for Recipes

Source§

impl EndpointWithId for Training

Source§

impl EndpointWithId for Pet

Source§

impl EndpointWithId for Cat

Source§

impl EndpointWithId for Node

Source§

impl EndpointWithId for ItemStat

Source§

impl EndpointWithId for Recipe

Source§

impl EndpointWithId for Skin

Source§

impl EndpointWithId for Item

Source§

impl EndpointWithId for Continent

Source§

impl EndpointWithId for Floor

Source§

impl EndpointWithId for Map

Source§

impl EndpointWithId for Color

Source§

impl EndpointWithId for Currency

Source§

impl EndpointWithId for Raid

Source§

impl EndpointWithId for World

Source§

impl EndpointWithId for Listings

Source§

impl EndpointWithId for Prices