pub enum Assert {
Anonymous,
Bot,
User,
None,
}
Expand description
Assert that your account has the specified login state, see API:Assert for more details.
Variants§
Anonymous
Not logged in, aka anonymous
Bot
Logged in to a bot account
User
Logged in (to any account)
None
Do not add any assert
Trait Implementations§
source§impl PartialEq<Assert> for Assert
impl PartialEq<Assert> for Assert
impl Copy for Assert
impl Eq for Assert
impl StructuralEq for Assert
impl StructuralPartialEq for Assert
Auto Trait Implementations§
impl RefUnwindSafe for Assert
impl Send for Assert
impl Sync for Assert
impl Unpin for Assert
impl UnwindSafe for Assert
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.