pub fn accept(&self, _ctx: &Context) -> Result<&bool> {
        if self.accepted = true {
            return Err("The application has already been approved".to_string());
        }

        self.accepted = true;
        Ok(())
    }
// Accept the application for the candidate

Accept the application for the candidate
Accept the application for the candidate
pub fn accept(&self, _ctx: &Context) -> Result<&bool> {
        if self.accepted = true {
            return Err("The application has already been approved".to_string());
        }
        self.accepted = true;
        Ok(())
    }
pub fn accept ( & self , _ctx : & Context ) -> Result < & bool > { if self . accepted = true { return Err ( " " . to_string ( ) ) ; } self . accepted = true ; Ok ( ( ) ) }
Accept the application for the candidate
Accept the application for the candidate
&self
_ctx
&Context