# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: Preload (experimental) from __future__ import annotations import enum import typing from dataclasses import dataclass from .util import event_class, T_JSON_DICT from . import dom from . import network from . import page class RuleSetId(str): ''' Unique id ''' def to_json(self) -> str: return self @classmethod def from_json(cls, json: str) -> RuleSetId: return cls(json) def __repr__(self): return 'RuleSetId({})'.format(super().__repr__()) @dataclass class RuleSet: ''' Corresponds to SpeculationRuleSet ''' id_: RuleSetId #: Identifies a document which the rule set is associated with. loader_id: network.LoaderId #: Source text of JSON representing the rule set. If it comes from #: ``