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§
Sourcefn id(&self) -> Id<UserMarker>
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.