pub enum ClientScope {
Mine,
Client(Uuid),
User(Uuid),
}Expand description
Which client identities a client statistic covers.
Variants§
Mine
All of the caller’s identities.
Client(Uuid)
One identity (uuid): the caller’s own, or any as an Admin.
User(Uuid)
All identities of a user: the caller, or anyone as an Admin.
Trait Implementations§
Source§impl Clone for ClientScope
impl Clone for ClientScope
Source§fn clone(&self) -> ClientScope
fn clone(&self) -> ClientScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientScope
Source§impl Debug for ClientScope
impl Debug for ClientScope
Source§impl Default for ClientScope
impl Default for ClientScope
Source§fn default() -> ClientScope
fn default() -> ClientScope
Returns the “default value” for a type. Read more
impl Eq for ClientScope
Source§impl PartialEq for ClientScope
impl PartialEq for ClientScope
impl StructuralPartialEq for ClientScope
Auto Trait Implementations§
impl Freeze for ClientScope
impl RefUnwindSafe for ClientScope
impl Send for ClientScope
impl Sync for ClientScope
impl Unpin for ClientScope
impl UnsafeUnpin for ClientScope
impl UnwindSafe for ClientScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.