pub trait ApiKey:
Send
+ Sync
+ Clone
+ 'static {
type IdType: ApiKeyId;
// Required methods
fn value(&self) -> &str;
fn id(&self) -> Self::IdType;
// Provided method
fn selector<D>(&self) -> KeySelector<Self, D>
where D: KeyDomain { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn selector<D>(&self) -> KeySelector<Self, D>where
D: KeyDomain,
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.