pub struct PadLayers {
pub cover_front: bool,
pub cover_back: bool,
pub no_paste: bool,
pub mask_margin: Option<i32>,
pub paste_margin: Option<i32>,
pub paste_windows: Option<PasteWindows>,
}Expand description
What a pad’s PRESET (its kind, side and shape) would put on the solder mask and paste layers, overridden where the user says otherwise. The default is “as the preset says”, and serializes as nothing, so a pad with no overrides is stored exactly as it was before overrides existed.
Fields§
§cover_front: boolSolder mask stays OVER the pad on the footprint’s front (tented): no opening.
cover_back: boolSolder mask stays over the pad on the footprint’s back.
no_paste: boolNo solder paste aperture for this surface-mount pad.
mask_margin: Option<i32>The mask opening’s growth beyond the copper, replacing the board’s
DesignRules::mask_expansion for this pad.
paste_margin: Option<i32>The paste aperture’s growth beyond the copper (negative shrinks it), in place of the default 0: the aperture matches the copper.
paste_windows: Option<PasteWindows>The paste split into a grid of smaller windows (a windowpane), as a large thermal pad’s is so the part does not float on one big deposit.