Struct cdp::dom::SetAttributesAsTextCommand
[−]
[src]
pub struct SetAttributesAsTextCommand<'a> { pub node_id: NodeId, pub text: Cow<'a, str>, pub name: Option<Cow<'a, str>>, }
Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.
Command DOM.setAttributesAsText
Domain Module: cdp::dom
Command Struct: cdp::dom::SetAttributesAsTextCommand
Response Struct: cdp::dom::SetAttributesAsTextResponse
Fields
node_id: NodeId
Id of the element to set attributes for.
text: Cow<'a, str>
Text with a number of attributes. Will parse this text using HTML parser.
name: Option<Cow<'a, str>>
Attribute name to replace with new attributes derived from text in case text parsed successfully.
Trait Implementations
impl<'a> Clone for SetAttributesAsTextCommand<'a>
[src]
fn clone(&self) -> SetAttributesAsTextCommand<'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 SetAttributesAsTextCommand<'a>
[src]
impl<'a> PartialEq for SetAttributesAsTextCommand<'a>
[src]
fn eq(&self, __arg_0: &SetAttributesAsTextCommand<'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: &SetAttributesAsTextCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for SetAttributesAsTextCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "DOM.setAttributesAsText"
impl<'a> SerializeCdpCommand for SetAttributesAsTextCommand<'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 SetAttributesAsTextCommand<'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>,