Skip to main content

pick

Function pick 

Source
pub fn pick(names: impl Into<Names>, spec: impl Into<Spec>) -> Node
Expand description

Keep only the named properties of an object shape. Naming one the shape does not declare is a fault: there is nothing there to pick.