pub struct Staff {
pub subject: Option<String>,
pub role: Option<String>,
}Expand description
An authorized staff caller, as require_staff returns it.
Fields§
§subject: Option<String>The staff member’s subject, when a person proved it. None for a
machine holding ADMIN_TOKEN.
role: Option<String>The role they hold in the staff organization, when a person.
Implementations§
Trait Implementations§
impl Eq for Staff
impl StructuralPartialEq for Staff
Auto Trait Implementations§
impl Freeze for Staff
impl RefUnwindSafe for Staff
impl Send for Staff
impl Sync for Staff
impl Unpin for Staff
impl UnsafeUnpin for Staff
impl UnwindSafe for Staff
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.