Trait ApiVersion

Source
pub trait ApiVersion: Sealed {
    const VERSION: &'static str;
}
Expand description

Trait to get the version of the API.

Required Associated Constants§

Source

const VERSION: &'static str

Version of the API.

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 ApiVersion for V1

Source§

const VERSION: &'static str = "v1"

Source§

impl ApiVersion for V2

Source§

const VERSION: &'static str = "v2"

Source§

impl ApiVersion for V3

Source§

const VERSION: &'static str = "v3"