Skip to main content

partial

Function partial 

Source
pub fn partial(spec: impl Into<Spec>) -> Node
Expand description

Make every declared property of an object shape optional, as optional would: a type token then injects its empty value, a literal its own. Shallow: a nested object’s own properties are as they were.