Skip to main content

Token

Trait Token 

Source
pub trait Token: Send + Sync {
    // Required method
    fn as_str(&self) -> &str;
}
Expand description

An authentication token that can be passed as a bearer credential.

Required Methods§

Source

fn as_str(&self) -> &str

Returns the token string.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Token for !

Source§

fn as_str(&self) -> &str

Implementors§