vibe.d beta banner
get vibe.d
0.7.30

Struct ValidUsername

Validated user name parameter type.

Constructors

Name Description
this

Methods

Name Description
fromStringValidate
toString

See also

vibe.utils.validation.validateUsername

Example

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
	}
}
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License