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

Id of the element to set attributes for.

Text with a number of attributes. Will parse this text using HTML parser.

Attribute name to replace with new attributes derived from text in case text parsed successfully.

Trait Implementations

impl<'a> Clone for SetAttributesAsTextCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SetAttributesAsTextCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SetAttributesAsTextCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for SetAttributesAsTextCommand<'a>
[src]

COMMAND_NAME: &'static str = "DOM.setAttributesAsText"

impl<'a> SerializeCdpCommand for SetAttributesAsTextCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for SetAttributesAsTextCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for SetAttributesAsTextCommand<'a>
[src]