/// get the database value from a PartState
get the database value from a PartState
get the database value from a PartState
pub fn to_val(&self) -> i8 {
        match self {
            PartState::Accepted => db_models::missions::part_state_type::STATE_ACCEPT,
            PartState::Finished => db_models::missions::part_state_type::STATE_FINISHED,
            PartState::Cancelled => db_models::missions::part_state_type::STATE_CANCELLED,
        }
    }
pub fn to_val ( & self ) -> i8 { match self { PartState :: Accepted => db_models :: missions :: part_state_type :: STATE_ACCEPT , PartState :: Finished => db_models :: missions :: part_state_type :: STATE_FINISHED , PartState :: Cancelled => db_models :: missions :: part_state_type :: STATE_CANCELLED , } }
get the database value from a PartState
get the database value from a PartState
&self