// Set attempts to set a field by suffix.
Set attempts to set a field by suffix.
// Set attempts to set a field by suffix .
func (u *userItems) Set(suffix string, item backend.Item) (ok bool) {
	switch suffix {
	case paramsPrefix:
		u.params = &item
	case pwdPrefix:
		u.pwd = &item
	case totpPrefix:
		u.totp = &item
	case u2fRegistrationPrefix:
		u.u2fRegistration = &item
	case u2fRegistrationCounterPrefix:
		u.u2fCounter = &item
	default:
		return false
	}
	return true
}
func ( u * userItems ) Set ( suffix string , item backend . Item ) ( ok bool ) { switch suffix { case paramsPrefix : u . params = & item case pwdPrefix : u . pwd = & item case totpPrefix : u . totp = & item case u2fRegistrationPrefix : u . u2fRegistration = & item case u2fRegistrationCounterPrefix : u . u2fCounter = & item default : return false } return true }
Set attempts to set a field by suffix.
Set attempts to set a field by suffix .