fn max_id(&self) -> i32 {
        if self.todos.len() == 0 {
            return 0
        }
        if let Some(max) = self.todos.iter().map(|t| t.id).max() {
            max
        } else {
            0
        }
    }
/// Get the next id -1 from our list of ToDos
Get the next id -1 from our list of ToDos
Get the next id - 1 from our list of ToDos
fn max_id(&self) -> i32 {
        if self.todos.len() == 0 {
            return 0
        }
        if let Some(max) = self.todos.iter().map(|t| t.id).max() {
            max
        } else {
            0
        }
    }
fn max_id ( & self ) -> i32 { if self . todos . len ( ) == 0 { return 0 } if let Some ( max ) = self . todos . iter ( ) . map ( | t | t . id ) . max ( ) { max } else { 0 } }
Get the next id -1 from our list of ToDos
Get the next id - 1 from our list of ToDos
&self
&self