Skip to main content

default

Function default 

Source
pub fn default(dval: impl Into<Value>, spec: impl Into<Spec>) -> Node
Expand description

Optional, with an explicit default. The node is the spec’s, so an object or array shape keeps its children; an untyped spec takes the default’s kind.