Trait ToStationToken

Source
pub trait ToStationToken: Serialize {
    // Required method
    fn to_station_token(&self) -> String;
}
Expand description

Trait for providing access to a station token.

Required Methods§

Source

fn to_station_token(&self) -> String

Return the station token as a String.

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.

Implementations on Foreign Types§

Source§

impl ToStationToken for &str

Source§

fn to_station_token(&self) -> String

Allow for using string slices with functions accepting ToStationToken.

Source§

impl ToStationToken for String

Source§

fn to_station_token(&self) -> String

Allow for using strings with functions accepting ToStationToken.

Implementors§