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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.