pub fn to_val(&self) -> i8 {
        match self {
            MissionType::Questionnaire => db_models::missions::mission_type::QUESTIONNAIRE,
            MissionType::Translation => db_models::missions::mission_type::TRANSLATION,
            MissionType::Errands => db_models::missions::mission_type::ERRANDS,
            MissionType::Trade => db_models::missions::mission_type::TRADE,
        }
    }
/// get the database value from a MissionType
get the database value from a MissionType
get the database value from a MissionType
pub fn to_val(&self) -> i8 {
        match self {
            MissionType::Questionnaire => db_models::missions::mission_type::QUESTIONNAIRE,
            MissionType::Translation => db_models::missions::mission_type::TRANSLATION,
            MissionType::Errands => db_models::missions::mission_type::ERRANDS,
            MissionType::Trade => db_models::missions::mission_type::TRADE,
        }
    }
pub fn to_val ( & self ) -> i8 { match self { MissionType :: Questionnaire => db_models :: missions :: mission_type :: QUESTIONNAIRE , MissionType :: Translation => db_models :: missions :: mission_type :: TRANSLATION , MissionType :: Errands => db_models :: missions :: mission_type :: ERRANDS , MissionType :: Trade => db_models :: missions :: mission_type :: TRADE , } }
get the database value from a MissionType
get the database value from a MissionType
&self
&self