ValidEmail

Validated e-mail 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!ValidEmail fromStringValidate(string str, string* error)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

class WebService {
	void setEmail(ValidEmail email)
	{
		// email is enforced to be valid here
	}

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

See Also

Meta