pub(crate) fn find_account_by_name<T>( accounts: &Vec<T>, name: &str, ) -> Option<T>where T: Account + Clone,
Search for an account by its name.