Trait medal::db_objects::OptionSession

source ·
pub trait OptionSession {
    // Required methods
    fn ensure_alive(self) -> Self;
    fn ensure_logged_in(self) -> Self;
    fn ensure_teacher(self) -> Self;
    fn ensure_admin(self) -> Self;
}

Required Methods§

source

fn ensure_alive(self) -> Self

source

fn ensure_logged_in(self) -> Self

source

fn ensure_teacher(self) -> Self

source

fn ensure_admin(self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OptionSession for Option<SessionUser>

source§

fn ensure_alive(self) -> Self

source§

fn ensure_logged_in(self) -> Self

source§

fn ensure_teacher(self) -> Self

source§

fn ensure_admin(self) -> Self

Implementors§