[][src]Trait df_st_api::api_objects::ApiObject

pub trait ApiObject {
    fn get_type() -> String;
fn get_item_link(&self, base_url: &str) -> String;
fn get_page_link(base_url: &str) -> String;
fn get_count_link(base_url: &str) -> String; }

This trait allows the item to be used as a response. Allows the item to be nested in an ApiPage or ApiItem.

Required methods

fn get_type() -> String

A unique name for the type. All in snake_case and singular.

The URL to an item in the api.

The URL to a page (list) in the api. This URL will be extended with query parameters.

The URL to the count page in the api. This URL will be extended with query parameters.

Loading content...

Implementations on Foreign Types

impl ApiObject for Artifact[src]

impl ApiObject for Coordinate[src]

impl ApiObject for Creature[src]

impl ApiObject for DanceForm[src]

impl ApiObject for Entity[src]

impl ApiObject for EntityPopulation[src]

impl ApiObject for HistoricalEra[src]

impl ApiObject for HistoricalEventCollection[src]

impl ApiObject for HistoricalEvent[src]

impl ApiObject for HistoricalFigure[src]

impl ApiObject for Identity[src]

impl ApiObject for Landmass[src]

impl ApiObject for LinkHEHF[src]

impl ApiObject for MapImage[src]

impl ApiObject for MountainPeak[src]

impl ApiObject for MusicalForm[src]

impl ApiObject for PoeticForm[src]

impl ApiObject for Region[src]

impl ApiObject for River[src]

impl ApiObject for SiteMapImage[src]

impl ApiObject for Site[src]

impl ApiObject for Structure[src]

impl ApiObject for SiteProperty[src]

impl ApiObject for UndergroundRegion[src]

impl ApiObject for WorldConstruction[src]

impl ApiObject for DFWorldInfo[src]

impl ApiObject for WrittenContent[src]

impl ApiObject for ItemCount[src]

Loading content...

Implementors

Loading content...