pub struct AddRule {
pub method: AddRuleMethod,
pub params: AddRuleParams,
}Expand description
Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the
position specified by location.
addRule
Fields§
§method: AddRuleMethod§params: AddRuleParamsImplementations§
Source§impl AddRule
impl AddRule
pub const IDENTIFIER: &'static str = "CSS.addRule"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl CommandResult for AddRule
impl CommandResult for AddRule
type Result = AddRuleResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for AddRule
impl<'de> Deserialize<'de> for AddRule
Source§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
Source§impl From<AddRule> for BrowserProtocolCommands
impl From<AddRule> for BrowserProtocolCommands
Source§impl From<AddRule> for CssCommands
impl From<AddRule> for CssCommands
Source§impl TryFrom<BrowserProtocolCommands> for AddRule
impl TryFrom<BrowserProtocolCommands> for AddRule
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <AddRule as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <AddRule as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<CssCommands> for AddRule
impl TryFrom<CssCommands> for AddRule
Source§type Error = CssCommands
type Error = CssCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: CssCommands,
) -> Result<Self, <AddRule as TryFrom<CssCommands>>::Error>
fn try_from( e: CssCommands, ) -> Result<Self, <AddRule as TryFrom<CssCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for AddRule
Auto Trait Implementations§
impl Freeze for AddRule
impl RefUnwindSafe for AddRule
impl Send for AddRule
impl Sync for AddRule
impl Unpin for AddRule
impl UnsafeUnpin for AddRule
impl UnwindSafe for AddRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more