pub struct SetAttributesAsTextBuilder { /* private fields */ }Expand description
Builder for SetAttributesAsText.
Implementations§
Source§impl SetAttributesAsTextBuilder
impl SetAttributesAsTextBuilder
Sourcepub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
pub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
Id of the element to set attributes for.
Sourcepub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn text<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Text with a number of attributes. Will parse this text using HTML parser.
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Attribute name to replace with new attributes derived from text in case text parsed successfully.
Sourcepub fn build(
&self,
) -> Result<SetAttributesAsText, SetAttributesAsTextBuilderError>
pub fn build( &self, ) -> Result<SetAttributesAsText, SetAttributesAsTextBuilderError>
Trait Implementations§
Source§impl Clone for SetAttributesAsTextBuilder
impl Clone for SetAttributesAsTextBuilder
Source§fn clone(&self) -> SetAttributesAsTextBuilder
fn clone(&self) -> SetAttributesAsTextBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetAttributesAsTextBuilder
impl RefUnwindSafe for SetAttributesAsTextBuilder
impl Send for SetAttributesAsTextBuilder
impl Sync for SetAttributesAsTextBuilder
impl Unpin for SetAttributesAsTextBuilder
impl UnsafeUnpin for SetAttributesAsTextBuilder
impl UnwindSafe for SetAttributesAsTextBuilder
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