SchemaMetadata

zio.blocks.schema.SchemaMetadata
See theSchemaMetadata companion object
final case class SchemaMetadata[S, G[_]](map: Map[Optic[S, _], IndexedSeq[_]])

A schema metadata structure can store arbitrary metadata attached to the structure of a type.

Attributes

Companion
object
Source
SchemaMetadata.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def add[A](optic: Optic[S, A], value: G[A]): SchemaMetadata[S, G]

Attributes

Source
SchemaMetadata.scala
def fold[Z](z: Z)(fold: Folder[S, G, Z]): Z

Attributes

Source
SchemaMetadata.scala
def get[A](optic: Optic[S, A]): Option[G[A]]

Attributes

Source
SchemaMetadata.scala
def getAll[A](optic: Optic[S, A]): IndexedSeq[G[A]]

Attributes

Source
SchemaMetadata.scala
def removeAll[A](optic: Optic[S, A]): SchemaMetadata[S, G]

Attributes

Source
SchemaMetadata.scala
def size: Int

Attributes

Source
SchemaMetadata.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala