CacheableCurrentUser

Trait CacheableCurrentUser 

Source
pub trait CacheableCurrentUser:
    From<CurrentUser>
    + PartialEq<CurrentUser>
    + PartialEq<Self>
    + Clone
    + Debug {
    // Required method
    fn id(&self) -> Id<UserMarker>;
}
Expand description

Trait for a generic cached representation of a CurrentUser.

Required Methods§

Source

fn id(&self) -> Id<UserMarker>

ID of the user.

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 CacheableCurrentUser for CurrentUser

Source§

fn id(&self) -> Id<UserMarker>

Implementors§