pub fn defaults_set_data<T: Serialize>(key: &str, value: T)
Sets the UserDefaults value of the specified key with serialized data.