HasSubject

Trait HasSubject 

Source
pub trait HasSubject {
    // Required method
    fn subject(&self) -> &str;
}
Available on crate feature auth only.
Expand description

Trait for claims that have a subject (user ID).

Required Methods§

Source

fn subject(&self) -> &str

Get the subject (user ID) from the claims.

Implementors§