Account

object Account
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Types

type Email = Constrained[String, DescribedAs[Match["^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$"], "Value should be an email"]]
type Password = Constrained[String, DescribedAs[Match["^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])[a-zA-Z0-9]+"], "Value should contain at least an upper, a lower and a number"]]
type Username = Constrained[String, DescribedAs[Match["^[a-zA-Z0-9]+"], "Value should be alphanumeric"]]

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def createAccount(username: Username, email: Email, password: Password): Either[IllegalValueError[String], Account]