pub struct SetAttributesAsText {
pub node_id: NodeId,
pub text: String,
pub name: Option<String>,
}Expand description
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.
Fields§
§node_id: NodeIdId of the element to set attributes for.
text: StringText with a number of attributes. Will parse this text using HTML parser.
name: Option<String>Attribute name to replace with new attributes derived from text in case text parsed successfully.
Trait Implementations§
Source§impl Clone for SetAttributesAsText
impl Clone for SetAttributesAsText
Source§fn clone(&self) -> SetAttributesAsText
fn clone(&self) -> SetAttributesAsText
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetAttributesAsText
impl Debug for SetAttributesAsText
Source§impl<'de> Deserialize<'de> for SetAttributesAsText
impl<'de> Deserialize<'de> for SetAttributesAsText
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 Method for SetAttributesAsText
impl Method for SetAttributesAsText
const NAME: &'static str = "DOM.setAttributesAsText"
type ReturnObject = SetAttributesAsTextReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for SetAttributesAsText
impl PartialEq for SetAttributesAsText
Source§impl Serialize for SetAttributesAsText
impl Serialize for SetAttributesAsText
impl StructuralPartialEq for SetAttributesAsText
Auto Trait Implementations§
impl Freeze for SetAttributesAsText
impl RefUnwindSafe for SetAttributesAsText
impl Send for SetAttributesAsText
impl Sync for SetAttributesAsText
impl Unpin for SetAttributesAsText
impl UnsafeUnpin for SetAttributesAsText
impl UnwindSafe for SetAttributesAsText
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