The state funeral of Queen Elizabeth II was a celebration of her life and a reminder of the many roles she played.