pub trait Endpoint: Sized {
const AUTHENTICATED: bool;
const LOCALE: bool;
const URL: &'static str;
const VERSION: &'static str;
}
Required Associated Constants§
Sourceconst AUTHENTICATED: bool
const AUTHENTICATED: bool
whether this endpoint requires authentication
Sourceconst URL: &'static str
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
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.