default.go
func (e *Email) SetBSON(raw bson.Raw) error {
	var m bson.M
	if err := raw.Unmarshal(&m); err != nil {
		return err
	}

	if data, ok := m["data"].(string); ok {
		*e = Email(data)
		return nil
	}

	return errors.New("couldn't unmarshal bson raw value as Email")
}
func (e *Email) SetBSON(raw bson.Raw) error {
	var m bson.M
	if err := raw.Unmarshal(&m); err != nil {
		return err
	}

	if data, ok := m["data"].(string); ok {
		*e = Email(data)
		return nil
	}

	return errors.New("couldn't unmarshal bson raw value as Email")
}
// SetBSON sets the Email from raw bson data