string encode()
Serializes the struct into a string. This string is equal to the string fed to decode if nothing in the struct has been altered.