Struct html_node::UnsafeText
source · pub struct UnsafeText {
pub text: String,
}
Expand description
An unsafe text node.
Warning
UnsafeText
is not escaped when rendered, and as such, can allow
for XSS attacks. Use with caution!
Fields§
§text: String
The text of the node.
Trait Implementations§
source§impl Clone for UnsafeText
impl Clone for UnsafeText
source§fn clone(&self) -> UnsafeText
fn clone(&self) -> UnsafeText
Returns a copy 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 UnsafeText
impl Debug for UnsafeText
source§impl<'de> Deserialize<'de> for UnsafeText
impl<'de> Deserialize<'de> for UnsafeText
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<UnsafeText, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<UnsafeText, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for UnsafeText
impl Display for UnsafeText
source§impl<T> From<T> for UnsafeText
impl<T> From<T> for UnsafeText
source§fn from(text: T) -> UnsafeText
fn from(text: T) -> UnsafeText
Create a new unsafe text element from anything that can be converted into a string.
source§impl From<UnsafeText> for Node
impl From<UnsafeText> for Node
source§fn from(text: UnsafeText) -> Node
fn from(text: UnsafeText) -> Node
Converts to this type from the input type.
source§impl PartialEq for UnsafeText
impl PartialEq for UnsafeText
source§fn eq(&self, other: &UnsafeText) -> bool
fn eq(&self, other: &UnsafeText) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UnsafeText
impl Serialize for UnsafeText
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for UnsafeText
impl StructuralEq for UnsafeText
impl StructuralPartialEq for UnsafeText
Auto Trait Implementations§
impl RefUnwindSafe for UnsafeText
impl Send for UnsafeText
impl Sync for UnsafeText
impl Unpin for UnsafeText
impl UnwindSafe for UnsafeText
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