defaults

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package defaults applies each resource's field defaults in place. It is its own package, separate from validation, so that both the RPC handlers and the store layer (which needs to backfill defaults on read, without depending on the RPC handlers) can call it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(m proto.Message)

Apply set default values to Substrate resource proto messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL