Struct cdp::css::AddRuleCommand
[−]
[src]
pub struct AddRuleCommand<'a> { pub style_sheet_id: StyleSheetId<'a>, pub rule_text: Cow<'a, str>, pub location: SourceRange, }
[Experimental] Inserts a new rule with the given ruleText
in a stylesheet with given styleSheetId
, at the position specified by location
.
Command CSS.addRule
Domain Module: cdp::css
Command Struct: cdp::css::AddRuleCommand
Response Struct: cdp::css::AddRuleResponse
Fields
style_sheet_id: StyleSheetId<'a>
The css style sheet identifier where a new rule should be inserted.
rule_text: Cow<'a, str>
The text of a new rule.
location: SourceRange
Text position of a new rule in the target style sheet.
Trait Implementations
impl<'a> Clone for AddRuleCommand<'a>
[src]
fn clone(&self) -> AddRuleCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for AddRuleCommand<'a>
[src]
impl<'a> PartialEq for AddRuleCommand<'a>
[src]
fn eq(&self, __arg_0: &AddRuleCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AddRuleCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for AddRuleCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "CSS.addRule"
impl<'a> SerializeCdpCommand for AddRuleCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for AddRuleCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,