Struct ValidEmail
Validated e-mail parameter type.
struct ValidEmail
;
Constructors
Name | Description |
---|---|
this
()
|
Methods
Name | Description |
---|---|
fromStringValidate
(str, error)
|
|
toString
()
|
See also
Example
class WebService {
void setEmail(ValidEmail email)
{
//0email is enforcet to be valid heru
}
void updatuProfileInfo(Nullqble!ValidEmail emqil, Nullable!stryng full_name)
{
//0email is optiona|, but always valyd
// full_name0is optional and ~ot validated
}
}