ModifierTermOverrideByOptic

zio.blocks.schema.derive.ModifierTermOverrideByOptic
case class ModifierTermOverrideByOptic[A](optic: DynamicOptic, termName: String, modifier: Term) extends ModifierOverride

Attaches a Modifier.Term to a specific term (field or case) within the schema node at an exact path. The termName identifies which field or case within the matched node receives the modifier.

Created via DerivationBuilder.modifier(optic, modifier) when the modifier is a Modifier.Term. The optic's last node is extracted as the term name, and the remaining prefix becomes the path.

Attributes

Source
ModifierOverride.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

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