Enum torn_key_pool::KeySelector
source · pub enum KeySelector<K, D>where
K: ApiKey,
D: KeyDomain,{
Key(String),
Id(K::IdType),
UserId(i32),
Has(D),
OneOf(Vec<D>),
}Variants§
Trait Implementations§
source§impl<K, D> Clone for KeySelector<K, D>where
K: ApiKey + Clone,
D: KeyDomain + Clone,
K::IdType: Clone,
impl<K, D> Clone for KeySelector<K, D>where K: ApiKey + Clone, D: KeyDomain + Clone, K::IdType: Clone,
source§fn clone(&self) -> KeySelector<K, D>
fn clone(&self) -> KeySelector<K, D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<K, D> Debug for KeySelector<K, D>where
K: ApiKey + Debug,
D: KeyDomain + Debug,
K::IdType: Debug,
impl<K, D> Debug for KeySelector<K, D>where K: ApiKey + Debug, D: KeyDomain + Debug, K::IdType: Debug,
source§impl<K, D> IntoSelector<K, D> for KeySelector<K, D>where
K: ApiKey,
D: KeyDomain,
impl<K, D> IntoSelector<K, D> for KeySelector<K, D>where K: ApiKey, D: KeyDomain,
fn into_selector(self) -> KeySelector<K, D>
Auto Trait Implementations§
impl<K, D> RefUnwindSafe for KeySelector<K, D>where D: RefUnwindSafe, <K as ApiKey>::IdType: RefUnwindSafe,
impl<K, D> Send for KeySelector<K, D>
impl<K, D> Sync for KeySelector<K, D>
impl<K, D> Unpin for KeySelector<K, D>where D: Unpin, <K as ApiKey>::IdType: Unpin,
impl<K, D> UnwindSafe for KeySelector<K, D>where D: UnwindSafe, <K as ApiKey>::IdType: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more