Endpoint

Trait Endpoint 

Source
pub trait Endpoint: Sized {
    const AUTHENTICATED: bool;
    const LOCALE: bool;
    const URL: &'static str;
    const VERSION: &'static str;
}

Required Associated Constants§

Source

const AUTHENTICATED: bool

whether this endpoint requires authentication

Source

const LOCALE: bool

whether this endpoint supports the language parameter

Source

const URL: &'static str

endpoint url in the format v2/account

§Remarks

Among other things, this URL is used to fetch ids. v2/characters/My Character/core still requires v2/characters to be set here. For special cases like characters, override the fetch url of single items here: EndpointWithId::format_url

Source

const VERSION: &'static str

version of the endpoint to request

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 Endpoint for Account

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/account"

Source§

const VERSION: &'static str = "2022-07-22T00:00:00.000Z"

Source§

impl Endpoint for Wallet

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/account/wallet"

Source§

const VERSION: &'static str = "2022-07-25T00:00:00.000Z"

Source§

impl Endpoint for Backstory

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Character

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Core

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Crafting

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Equipment

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Inventory

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Recipes

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Training

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/characters"

Source§

const VERSION: &'static str = "2022-06-14T00:00:00.000Z"

Source§

impl Endpoint for Delivery

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/commerce/delivery"

Source§

const VERSION: &'static str = "2023-07-01T00:00:00.000Z"

Source§

impl Endpoint for Tokeninfo

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/tokeninfo"

Source§

const VERSION: &'static str = "2021-01-11T00:00:00.000Z"

Source§

impl Endpoint for Pet

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/pets"

Source§

const VERSION: &'static str = "2024-03-09T00:00:00.000Z"

Source§

impl Endpoint for Cat

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/home/cats"

Source§

const VERSION: &'static str = "2023-08-14T00:00:00.000Z"

Source§

impl Endpoint for Node

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/home/nodes"

Source§

const VERSION: &'static str = "2023-08-14T00:00:00.000Z"

Source§

impl Endpoint for ItemStat

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/itemstats"

Source§

const VERSION: &'static str = "2023-03-20T19:00:00.000Z"

Source§

impl Endpoint for Recipe

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/recipes"

Source§

const VERSION: &'static str = "2023-03-20T13:00:00.000Z"

Source§

impl Endpoint for Skin

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/skins"

Source§

const VERSION: &'static str = "2023-03-20T19:00:00.000Z"

Source§

impl Endpoint for Item

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/items"

Source§

const VERSION: &'static str = "2022-07-22T00:00:00.000Z"

Source§

impl Endpoint for Continent

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/continents"

Source§

const VERSION: &'static str = "2023-03-31T00:00:00.000Z"

Source§

impl Endpoint for Floor

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/continents"

Source§

const VERSION: &'static str = "2023-03-31T00:00:00.000Z"

Source§

impl Endpoint for Map

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/maps"

Source§

const VERSION: &'static str = "2023-04-02T00:00:00.000Z"

Source§

impl Endpoint for Build

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/build"

Source§

const VERSION: &'static str = "2021-01-11T00:00:00.000Z"

Source§

impl Endpoint for Color

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/colors"

Source§

const VERSION: &'static str = "2021-01-11T00:00:00.000Z"

Source§

impl Endpoint for Currency

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/currencies"

Source§

const VERSION: &'static str = "2021-01-11T00:00:00.000Z"

Source§

impl Endpoint for Raid

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/raids"

Source§

const VERSION: &'static str = "2023-08-02T00:00:00.000Z"

Source§

impl Endpoint for World

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = true

Source§

const URL: &'static str = "v2/worlds"

Source§

const VERSION: &'static str = "2022-07-22T00:00:00.000Z"

Source§

impl Endpoint for Listings

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/commerce/listings"

Source§

const VERSION: &'static str = "2021-01-11T00:00:00.000Z"

Source§

impl Endpoint for Prices

Source§

const AUTHENTICATED: bool = false

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/commerce/prices"

Source§

const VERSION: &'static str = "2021-01-11T00:00:00.000Z"

Source§

impl Endpoint for Bank

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/account/bank"

Source§

const VERSION: &'static str = "2022-07-25T00:00:00.000Z"

Source§

impl Endpoint for AccountInventory

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/account/inventory"

Source§

const VERSION: &'static str = "2023-07-01T00:00:00.000Z"

Source§

impl Endpoint for AccountMaterials

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/account/materials"

Source§

const VERSION: &'static str = "2022-07-25T00:00:00.000Z"

Source§

impl Endpoint for RaidEvent

Source§

const AUTHENTICATED: bool = true

Source§

const LOCALE: bool = false

Source§

const URL: &'static str = "v2/account/raids"

Source§

const VERSION: &'static str = "2023-08-02T00:00:00.000Z"