Alt

smithy4s.schema.Alt
See theAlt companion object
final case class Alt[U, A](label: String, schema: Schema[A], inject: A => U, project: PartialFunction[U, A])

Represents a member of coproduct type (sealed trait)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addHints(newHints: Hints): Alt[U, A]
def addHints(newHints: Hint*): Alt[U, A]
def hints: Hints
def transformHintsLocally(f: Hints => Hints): Alt[U, A]
def validated[C](c: C)(implicit constraint: Simple[C, A]): Alt[U, A]

Deprecated methods

def instance: Schema[A]

Attributes

Deprecated
[Since version 0.18.0]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product