ValidUsername

Validated user name parameter type.

Constructors

this
this()
Undocumented in source.

Alias This

toString

Members

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromStringValidate
Nullable!ValidUsername fromStringValidate(string str, string* error)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

class WebService {
	void setUsername(ValidUsername username)
	{
		// username is enforced to be valid here
	}

	void updateProfileInfo(Nullable!ValidUsername username, Nullable!string full_name)
	{
		// username is optional, but always valid
		// full_name is optional and not validated
	}
}

See Also

vibe.utils.validation.validateUsername

Meta