fn clean_name(&self) -> String {
        if self.name.ends_with("s") {
            self.name.trim_right_matches("s").to_owned()

        } else if self.name.ends_with("ies") {
            self.name.trim_right_matches("y").to_owned()

        } else {
            self.name.to_owned()
        }
    }
/// remove plural names such as users to user
remove plural names such as users to user
remove plural names such as users to user
fn clean_name(&self) -> String {
        if self.name.ends_with("s") {
            self.name.trim_right_matches("s").to_owned()
        } else if self.name.ends_with("ies") {
            self.name.trim_right_matches("y").to_owned()
        } else {
            self.name.to_owned()
        }
    }
fn clean_name ( & self ) -> String { if self . name . ends_with ( " " ) { self . name . trim_right_matches ( " " ) . to_owned ( ) } else if self . name . ends_with ( " " ) { self . name . trim_right_matches ( " " ) . to_owned ( ) } else { self . name . to_owned ( ) } }
remove plural names such as users to user
remove plural names such as users to user
&self
&self