Struct chromiumoxide_cdp::cdp::browser_protocol::css::AddRuleParams [−][src]
pub struct AddRuleParams { pub style_sheet_id: StyleSheetId, pub rule_text: String, pub location: SourceRange, }
Expand description
Inserts a new rule with the given ruleText
in a stylesheet with given styleSheetId
, at the
position specified by location
.
addRule
Fields
style_sheet_id: StyleSheetId
The css style sheet identifier where a new rule should be inserted.
rule_text: String
The text of a new rule.
location: SourceRange
Text position of a new rule in the target style sheet.
Implementations
pub fn new(
style_sheet_id: impl Into<StyleSheetId>,
rule_text: impl Into<String>,
location: impl Into<SourceRange>
) -> Self
Trait Implementations
type Response = AddRuleReturns
type Response = AddRuleReturns
The type of the response this request triggers on the chromium server
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
The whole string identifier for this method like: DOM.removeNode
The name of the domain this method belongs to: DOM
The standalone identifier of the method inside the domain: removeNode
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AddRuleParams
impl Send for AddRuleParams
impl Sync for AddRuleParams
impl Unpin for AddRuleParams
impl UnwindSafe for AddRuleParams
Blanket Implementations
Mutably borrows from an owned value. Read more