pub enum Command<'a> {
Show 13 variants Only(CssSelectorList<'a>), Without(CssSelectorList<'a>), ForEach(CssSelectorList<'a>, Pipeline<'a>), Replace(CssSelectorList<'a>, Pipeline<'a>), ClearAttribute(String), ClearContent, SetAttribute(StringValueSource), SetTextContent(ValueSource), AddTextContent(ValueSource), AddComment(ValueSource), AddElement(Pipeline<'a>), CreateElement(String), ReadFrom(String),
}

Variants

Only(CssSelectorList<'a>)

Find all nodes, beginning at the input, that match the given CSS selector and return only those

Without(CssSelectorList<'a>)

Find all nodes, beginning at the input, that match the given CSS selector and remove them from their parent nodes. Returns the input as result.

ForEach(CssSelectorList<'a>, Pipeline<'a>)

runs a sub-pipeline on each element matching the given CSS selector Returns the input as result.

Replace(CssSelectorList<'a>, Pipeline<'a>)

runs a sub-pipeline and replaces each element matching the given CSS selector with the result of the pipeline Returns the input as result.

ClearAttribute(String)

Remove the given attribute from all currently selected nodes Returns the input as result.

ClearContent

Remove all children of the currently selected nodes Returns the input as result

SetAttribute(StringValueSource)

Add or Reset a given attribute with a new value Returns the input as result.

SetTextContent(ValueSource)

Remove all children of the currently selected nodes and add a new text as child instead Returns the input as result.

AddTextContent(ValueSource)

adds a new text as child Returns the input as result.

AddComment(ValueSource)

adds a new comment as child Returns the input as result.

AddElement(Pipeline<'a>)

runs a sub-pipeline and adds the result as child Returns the input as result.

CreateElement(String)

creates an HTML element of given type Returns the created element as result.

ReadFrom(String)

reads a different file into memory Returns the content of that file as result.

Trait Implementations

The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.