To serialize new types use [System.Serializable] on top of your struct/class