function writeResourceIdFilter(node, filter, objectStack) {
  node.setAttribute('rid', /** @type {string} */ (filter.rid));
}
@param {Element} node Element.
@param {import("./filter/ResourceId.js").default} filter Filter.
@param {Array<*>} objectStack Node stack.