String

zio.blocks.schema.Validation.String
See theString companion trait
object String

The string constraints.

Attributes

Companion
trait
Source
Validation.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
String.type

Members list

Type members

Classlikes

case object Blank extends String

The string is empty or holds only whitespace (it is empty after trim).

The string is empty or holds only whitespace (it is empty after trim).

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait String
trait Validation[String]
class Object
trait Matchable
class Any
Show all
Self type
Blank.type
case object Empty extends String

The string has no characters.

The string has no characters.

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait String
trait Validation[String]
class Object
trait Matchable
class Any
Show all
Self type
Empty.type
case class Length(min: Option[Int], max: Option[Int]) extends String

The length of the string is at least min and at most max; None leaves that side open.

The length of the string is at least min and at most max; None leaves that side open.

Attributes

Source
Validation.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait String
trait Validation[String]
class Object
trait Matchable
class Any
Show all
case object NonBlank extends String

The string holds a character other than whitespace (it is not empty after trim).

The string holds a character other than whitespace (it is not empty after trim).

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait String
trait Validation[String]
class Object
trait Matchable
class Any
Show all
Self type
NonBlank.type
case object NonEmpty extends String

The string has at least one character.

The string has at least one character.

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait String
trait Validation[String]
class Object
trait Matchable
class Any
Show all
Self type
NonEmpty.type
case class Pattern(regex: String) extends String

The whole string matches the regular expression regex. It is checked with String#matches, so the pattern needs no ^ or $.

The whole string matches the regular expression regex. It is checked with String#matches, so the pattern needs no ^ or $.

Attributes

Source
Validation.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait String
trait Validation[String]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala