pub fn check_if_completed(&self) -> bool {
        // Check if there are no pending at all to set complete to true
        let no_pending_left = self.pending().is_empty();
        let milestone_exist = self.milestone_exist();
        if no_pending_left && milestone_exist {
            // milestone data is complete now
            return true;
        }
        false
    }
/// Check if the milestone data is completed
Check if the milestone data is completed
Check if the milestone data is completed
pub fn check_if_completed(&self) -> bool {
        // Check if there are no pending at all to set complete to true
        let no_pending_left = self.pending().is_empty();
        let milestone_exist = self.milestone_exist();
        if no_pending_left && milestone_exist {
            // milestone data is complete now
            return true;
        }
        false
    }
pub fn check_if_completed ( & self ) -> bool { // Check if there are no pending at all to set complete to true let no_pending_left = self . pending ( ) . is_empty ( ) ; let milestone_exist = self . milestone_exist ( ) ; if no_pending_left && milestone_exist { // milestone data is complete now return true ; } false }
Check if the milestone data is completed
Check if the milestone data is completed
&self