DynamicPatch

zio.blocks.schema.patch.DynamicPatch
See theDynamicPatch companion object
final case class DynamicPatch(ops: Chunk[DynamicPatchOp])

An untyped patch that operates on DynamicValue. Patches are serializable and can be composed.

Attributes

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

Members list

Value members

Concrete methods

Compose two patches. The result applies this patch first, then that patch.

Compose two patches. The result applies this patch first, then that patch.

Attributes

Source
DynamicPatch.scala
def apply(value: DynamicValue, mode: PatchMode = ...): Either[SchemaError, DynamicValue]

Apply this patch to a DynamicValue.value and mode.

Apply this patch to a DynamicValue.value and mode.

Attributes

Source
DynamicPatch.scala
def isEmpty: Boolean

Check if this patch is empty (no operations).

Check if this patch is empty (no operations).

Attributes

Source
DynamicPatch.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
DynamicPatch.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