Struct html_node_core::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<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 Display for UnsafeText
impl Display for UnsafeText
source§impl PartialEq<UnsafeText> for UnsafeText
impl PartialEq<UnsafeText> 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
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