Default

smithy.api.Default
object Default extends Newtype[Document]

Provides a structure member with a default value. When added to root level shapes, requires that every targeting structure member defines the same default value on the member or sets a default of null.

This trait can currently only be used in Smithy 2.0 models.

Attributes

Graph
Supertypes
class Newtype[Document]
trait HasId
class Object
trait Matchable
class Any
Self type
Default.type

Members list

Type members

Inherited classlikes

object hint

Attributes

Inherited from:
Newtype
Supertypes
class Object
trait Matchable
class Any

Inherited types

opaque type Type

Attributes

Inherited from:
Newtype

Value members

Inherited methods

def apply(a: Document): Type

Attributes

Inherited from:
Newtype
def unapply(orig: Type): Some[A]

Attributes

Inherited from:
Newtype

Concrete fields

val hints: Hints
val id: ShapeId

Extensions

Inherited extensions

extension (orig: Type)
def value: A

Attributes

Inherited from:
Newtype

Implicits

Implicits

implicit val schema: Schema[Default]

Inherited implicits

Attributes

Inherited from:
Newtype
implicit val tag: ShapeTag[Type]

Attributes

Inherited from:
Newtype