Struct cw_controllers::Admin [−][src]
pub struct Admin<'a>(_);
Implementations
Returns Ok(true) if this is an admin, Ok(false) if not and an Error if we hit an error with Api or Storage usage
Like is_admin but returns AdminError::NotAdmin if not admin. Helper for a nice one-line auth check.